UI doesn't fill in iPhone 6 plus

970 views Asked by At

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!

2

There are 2 answers

1
Vytautas On BEST ANSWER

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

0
bpolat On

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.

enter image description here

enter image description here

enter image description here