Why [UIScreen mainScreen].bounds] is not returning full screen size?

后端 未结 2 1263
执念已碎
执念已碎 2020-12-11 11:44

I have an app that was created prior to the new iPhone 5 retina widescreen device. Now i am trying to support this high definition widescreen.

I adjust the main View

相关标签:
2条回答
  • 2020-12-11 11:54

    Point worth notice - in new Xcode you have to add this image file Default-568h@2x.png to assets

    0 讨论(0)
  • 2020-12-11 12:19

    You have to add the iPhone 5 Launch image (Default-568h@2x.png) to your project.

    The 568 point tall launch image tells iOS to launch your app in 4" mode. If you don't have this image, your app is treated as a 3.5" app. Even if it is 4" compatible.

    0 讨论(0)
提交回复
热议问题