UI doesn't fill in iPhone 6 plus

十年热恋 提交于 2020-01-13 14:55:15

问题


I'm working on an iOS app and realize the ui is not auto stretch to fit the screen when it's running in iPhone 6 plus. So the UI is on the right left, and there are a lot of white space in the bottom and right.

If I set the width of a view to beyond 320 (ex. 400), then the view be wider than 320.

How could I make my views auto stretch to fill the screen?

I have a few other apps, and they works perfectly fine in iPhone 6 plus.

I couldn't figure out what make this app's ui not auto stretching. The only difference I could think of it this one is create after the official xcode 6 is released, the others were created in xcode 6 beta version

Thanks!


回答1:


You should start using auto-layouts. Start from here: Auto layout guide




回答2:


Seems like you enabled native resolution for iPhone 6 Plus. If you delete "launch screen file" you can individually control which screen size will be supported as native resolution by adding related size of launch images.



来源:https://stackoverflow.com/questions/26940860/ui-doesnt-fill-in-iphone-6-plus

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