How to disable iPhone 6 native resolution?

ⅰ亾dé卋堺 提交于 2019-11-27 14:26:18
Bhumit Mehta

1. Is there anything else that unlocks the native resolutions?

No for older projects you can only unlock native resolutions by adding launch images

2.I've made a new empty project that does not have any assets and it is working with the native screen sizes.

If you create project from XCode 6 naive resolution will be automatically enabled even if launch images are not added. I just created new sample project from Xcode 5.1.1 and than ran it on Xcode 6 and naive resolution was not enabled and views were scaled in order to fit the screen.

Hope that clears the confusion as your project are old as you mentioned naive resolution will not be enabled unless you add launch images.

Correction

Based on comments i am correcting my answer for projects created in XCode 6 you can delete Launch Screen File and also not add any iPhone 6/6+ specific launch images. The app will not run in native iPhone 6/6+ resolution.

So For iOS8 you can have either Launch images for iPhone 6 and 6 Plus or a Launch Screen File

Bhumit is partially right, but I believe there is one missing detail. To disable native resolution (and ensure scaled resolution) I did the following:

  1. Remove LaunchScreen.xib from project as well as any iPhone 6/6+ launch images you may have.
  2. In your app's target, go to General, and under "Launch Screen File" blank out the entry.
  3. Clean and rebuild
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!