Which setting determines whether the application is scaled for iPhone 6 and 6plus?

Therefore, when I launch my project on a simulator for iPhone 6, with the goal of deploying 7.1, I expect that everything will automatically scale to a larger screen size.

But this does not happen. My UILabel, which was previously horizontally located in the center of a 320-pixel widescreen screen with a leading spatial constraint on the parent view, is now displayed in the simulator with this space constraint, rather than being scaled. Thus, it appears off-center because the iPhone6 ​​is wider.

Which parameter determines whether the application will scale for iPhone 6 and iPhone 6 + ???

Paul G.

+6
source share
1 answer

Ok, I found it:

What's new in iOS8

β€œFor the system to know that your application supports the screen sizes of the iPhone 6, include the storyboard launcher screen file in your application package. At run time, the system looks for the storyboard launcher screen file. If there is one, the system assumes that your application explicitly supports the iPhone 6 and 6 Plus and starts it in full screen mode.If there is no such image, the system reports a smaller screen size (320 by 480 pixels or 320 by 568 pixels) so that your calculations based on the application screen remain correct. tabirs to fit the big screen.

So, I deleted LaunchImage.xib (which was put there automatically), and I deleted the entry for that in plist.

+6
source

Source: https://habr.com/ru/post/975611/


All Articles