简体   繁体   English

iOS:Xcode中的哪个标志将声明我的iPhone和iPad应用程序?

[英]iOS: Which flag in Xcode will declare my app for both iPhone and iPad?

I have developed an educational app, and have built it with a storyboard of iPhone. 我开发了一个教育应用程序,并使用iPhone的故事板构建了该应用程序。 It is working perfectly on iPad without a need for a change (except for pressing the 'X2' button). 它无需更改即可在iPad上完美运行(按“ X2”按钮除外)。

Now that the app is active in App Store, I see that iPad users who search for my keywords, do not receive my app in their search results, unless changing the top menu from 'iPad Only' to 'iPhone Only'. 现在该应用程序已在App Store中启用,我看到搜索我的关键字的iPad用户在其搜索结果中不会收到我的应用程序,除非将顶部菜单从“仅iPad”更改为“仅iPhone”。

I am wondering if there is a flag that will set my app to appear in the search results for iPad users too. 我想知道是否有一个标志会将我的应用设置为也出现在iPad用户的搜索结果中。

Or am I forced to create another storyboard? 还是我被迫创建另一个情节提要?

Will appreciate you help!! 将感谢您的帮助!

There is no flag for that. 没有该标志。

You can create a Universal App (meaning you do support both iPhone and iPad) which then will mean your app is listed in both iPhone and iPad searches on the App Store, however you need to also provide a UI for the iPad version too in this case! 您可以创建一个通用应用程序(这意味着您同时支持iPhone和iPad),这意味着您的应用程序会同时在App Store的iPhone和iPad搜索中列出, 但是在此您还需要提供iPad版本的UI案件!

I have found the answer to be: Targeted Device Family 我找到了答案:目标设备系列

When setting it for both iPhone and iPad, a different UI will be presented for iPad, and you should adapt it to appear correctly. 当同时为iPhone和iPad设置它时,将为iPad显示不同的UI,您应该对其进行调整以使其正确显示。

EDIT 编辑

As mentioned by @Lefteris, each target can be marked as universal for that same purpose, but Targeted Device Family exists in the project level and allows setting that flag for all target at once . 正如@Lefteris所提到的,出于相同的目的,每个目标都可以标记为通用 ,但是Targeted Device Family存在于项目级别,并允许立即为所有目标设置该标志。

I'm still missing a practical guide for turning an iPhone app into universal: how to add a storyboard and how to turn a two-levels behavior (table -> data) into a split table view. 我仍然缺少将iPhone应用程序通用化的实用指南:如何添加情节提要以及如何将两级行为(表格->数据)转换为拆分表格视图。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 制作一个适用于iPhone和iPad的应用程序 - make an app which is compatible for both iphone and ipad Xcode 7.3如何将现有的iPhone应用程序转换为通用应用程序,以便在iOS中使用iPad - Xcode 7.3 How to Convert my existing iPhone application to universal app, for work with iPad in iOS 混淆创建一个具有iphone和iPad版本的应用程序 - Confusing about create an app which has version for both iphone and iPad 适用于iPhone和iPad的ios7中的应用程序图标大小是多少? - What is the app icon size in ios7 for both iPhone an iPad? 为5.0准备iOS应用程序,并在iPhone和iPad上都可用 - Preparing iOS app for 5.0 and to be available on both iPhone and iPad 适用于 iPhone 和 iPad 的 Xcode 图像资源 - Xcode image assets for both iPhone and iPad 我的应用程序可以同时在iphone和ipad上显示在应用商店中,而无需通过“仅iphone”进行过滤 - My app to show on both iphone and ipad in app store without having me to filter it by “iphone only” Xcode 无法在模拟器和 iPhone 上安装我的应用程序 - Xcode fails to install my app on both simulator and iPhone IOS7升级后,Xcode 5在iPad上编译iPhone应用程序的框架问题(在iPhone中正常工作) - Frame issue for Xcode 5 compiled iPhone app in iPad after IOS7 upgrade (works fine in iPhone) 在 XCode 4 中将 iPhone 应用程序转换为 iPad 应用程序 - Converting an iPhone app to an iPad app in XCode 4
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM