Xcode 6 resizes app automatically for iPhone 6 and 6 plus

主宰稳场 提交于 2019-11-29 04:23:05

If you don't use a launch story board or include launch images for the new iPhone 6 sizes, the entire screen will expand to fill the new device size (same thing happens when enabling Zoom in accessibility settings). The iPhone 6 user will notice larger fonts, images, etc.

This is what's happening. The problem is that you don't get to take advantage of extra screen real estate (extra pixels). If that's cool with you, then keep it, but when you do finally optimize your app to use that extra real-estate the iPhone 6 users will suddenly complain that the font size has gotten smaller when it stops auto-zooming.

You should spend the time to optimize it for iPhone 6 and include launch images (or launch story board if supporting iOS 8+ only), and get the "Optimized for iPhone 6" note added to your app description.

To solve this issue and bring back the auto zoom for the applications, just do not set the Lauch screen file and put an image named Default-568h@2x.png (640x1136 pixels) in your project. Now make the entire project using iPhone SE screen size in the storyboard. When the application opens on the larger screen iphones, the view image will fill the entire screen.

If you don't touch your app pre iOS 8, it will automatically work in iPhone 6 and 6 Plus devices. But if you want to use size classes (as you should), then you'll have to add the autolayout constraints to make things all good.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!