0

In my XCode's Targets summary screen, the "Devices" drop down is set to "iPhone" (other possible values are iPad and Universal) because I haven't fine tuned the app's UI for iPad. However, will people be able to download and run my app from the iPad in non-fullscreen? (e.g., with black border surrounding most of the screen)

I want people to be able to search for it in app store, install it, and run it even though it is not full screen.

4

3 回答 3

5

即使您的应用程序的设备设置是 iPhone,您也可以从 iPad 下载它,但它只能以 iphone 尺寸查看,或者在2x应用程序右下角的选项中(参考图片)将 ipad 中的应用程序尺寸加倍; 但双倍视图看起来会拉长。下载到 ipad 的 iphone 应用程序将如下所示(在 1x 模式下)。

(在 1x 模式下)

于 2013-06-29T10:32:08.453 回答
1

如果它作为 iPhone 应用程序在应用商店中,那么您仍然可以在 iPad 上运行它,但它们将以原始大小运行,除非您使用 1x 或 2x 图标更改大小以适应。图形不会那么清晰,如果您的应用程序使用任何 iPhone 独有的功能 - 拨打电话,那么它将无法按预期工作。

如果您想摆脱 iPad 中的小 iPhone 应用程序,那么您需要将目标更改为 Universal 以便作为原生 iPad 应用程序运行

于 2013-06-29T10:09:33.567 回答
-2

您使用什么类型的构建?XIB 还是故事板?

在任何情况下,去下拉菜单并设置通用应用程序,xcode 自动为 iPad 创建 Xib 或故事板目标,并且应用程序在 iPad 上全屏运行。

好的,现在您必须设置一个特定于 iPad 的新界面:

如果您使用 xib 文件,您只需调整 iPad 的界面目标大小。

如果你使用情节提要,为了你必须

  1. 右键单击您的项目,然后单击 NewFile
  2. 为 iPad 添加新的故事板目标

现在你有一个新的 ipad 故事板,但是是空的并且没有链接,所以去你的项目设置并在 iPad 设置下设置新故事,点击 iPhone 故事板,然后在CMD + A你的故事板中选择所有 iPhone 去你的故事板iPad 并再次CMD + ACANCYes 删除 iPad Storyboard 中的所有内容,然后按CMD + V现在您已将所有项目正确复制到 ipad 目标,但现在您需要重新链接并调整所有内容的大小。

希望这对您和其他人有所帮助,不要忘记投票;)

于 2013-06-29T10:20:05.187 回答