lgsanjos lgsanjos - 10 months ago 53
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 Source

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.