Reputation: 9596
I have set my constraints in interface builder's Main.storyboard to compact(w) regular(h), however the view gets displayed in an inconsistent way (see image below).
Compact and regular says that it should fit all iPhone potrait modes. I don't understand why it does not fit my iPhone 5 simulator and why it appears differently.
As you can see from the image I also tried to put the view elements with a "placeholder" constraint.
Upvotes: 0
Views: 152
Reputation: 933
You need to set constraints to your view. A very good tutorial you can find from :http://www.brianjcoleman.com/autolayout-xcode6/
Set the left & right constraint as you can see in the image.
Upvotes: 1