ios - 在 iPad 上运行 iPhone 应用程序时四周出现黑条

标签 ios objective-c iphone

我有一个 iPhone 应用程序,我想在 iPad 上运行它。但是当我运行时,我看到所有的边上都有黑条,如下所示:

enter image description here

我正在使用 LaunchScreen.storyboard 文件。 LaunchScreen.storyboard 设置为启动屏幕(已选中复选标记)。在目标设置中,我有以下设置:

enter image description here

有什么想法吗?

截图:

enter image description here

最佳答案

编辑:那个苹果测试员弄错了。你的应用很好!!!

我新建了一个只支持iphone的项目,在ipad模拟器上运行。我算了一下里面的屏占比等于0.69。和苹果发给你的截图里面的屏幕比例一样。

Apple tester got it wrong. looks like that is the new behaviour on the iOS 10 and that apple test does not know it. reply to them with this they should accept your app without resubmitting new binary.

原答案:

从模拟器中删除 DerivedData、Clean 和 remove app 应该可以解决问题。或者您可能不支持 iPad:

enter image description here

关于ios - 在 iPad 上运行 iPhone 应用程序时四周出现黑条,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42878434/

相关文章:

ios - 如何改变 Core Plot 散点图的颜色?

iphone - iPhone 4 和 iPhone 4S 的区别

ios - TableView 单元格的 UITableViewAutomaticDimension,同时保持图像纵横比

iphone - 有没有办法在使用 AVPlayer 进行 HTTP 实时音频流时选择比特率?

ios - iPhone 4 和 iPhone 5 之间的自动调整问题

ios - 在 ViewController 中设置变量之前执行 ViewModel 函数

ios - 为什么 RACCommand 的 block 返回信号?

iphone - 如何像 UIButton 选择一样选择 UITabBarItem

iphone - 我们怎样才能让 kCAOnOrderOut 工作呢?

iphone - 我们可以随时在 iPhone 中启动设置屏幕以启用 GPS 吗?