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.
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.