1

I tried adding a launch screen to my app. I tried the simplest : just add a new file of type Launch screen to my project (and do nothing more). But this seems to change the resolution of my whole application. Here are sample screens of the same controller of my application with and without the Launch Screen :

without the launch screen :

enter image description here

with the launch screen :

enter image description here

Strangely, once I have used the Launch Screen once, I need to quit and re-launch the simulator to re-obtain the original resolution.

What should I do and which resolution is the correct one to work with ? Does it have something to do with retina ? I can copy-paste the code generated in the LaunchScreen.xib if needed.

4

1 回答 1

2

来自 Apple 的文档:

您使用启动 XIB 或故事板文件来指示您的应用程序在 iPhone 6 Plus 或 iPhone 6 上运行。

通过添加启动屏幕,您激活了对 iPhone 6 和 iPhone 6 Plus 的原生支持。这意味着您的应用程序不再按比例放大以适应 iPhone 6 和 6 Plus 的大屏幕,而是使用这些大屏幕的全分辨率(恕我直言,这是您应该做的一件好事)。

于 2015-10-26T21:18:29.157 回答