lgsanjos lgsanjos - 5 days ago 5
iOS Question

xcode story board doesn't align for iphone 5

When I try on iPhone 6 or higher it works fine, but for 5 it simply doesn't align correctly. I haven't set any size for the controller.

enter image description here

Answer

This is expected, you need to apply autolayout constrains on the subviews, read here auto layout and here constraints

By this they will be centered on all devices or look like the way you define the constraints.

Comments