iOS Universal App layout all messed up on iPhone?

448 views Asked by At

I am trying to make a universal app in Xcode 6 using swift, and it's not going so well. I have a tab bar controller app, and I am trying to make something like this: enter image description here

(The height and width are set to Any) But when I run it on an iPhone 5 simulator:enter image description here

How do I fix this? Will I have to make separate storyboards for each device?

2

There are 2 answers

0
Anuj Rajput On

What I understood is that, you should probably pin Top Space for the top most label and pin Vertical Spacing constraints for the other two buttons.

The "GO" button should have a vertical spacing constraint with respect to the "Control" label and the "STOP" should have a vertical spacing constraint with respect to the "GO" button or Bottom Spaceif you want to stick it to the bottom of the view.

0
ByteDuck On

I solved this issue by clicking on all of my items, then clicking on this guy near the bottom: enter image description hereThen clicking "Reset to suggested constraints".