ssabetan ssabetan - 1 year ago 71
iOS Question

iOS Auto Layout Constraint's Jumping After View Has Loaded

Made a quick video demonstrating the issue here:

When I remove the constraints the text does not jump upon loading the view. But then it defeats the purpose.

When I setup the constraints I used "Reset to Suggested Constraints"

Any ideas?

Answer Source

This is not a constraint issue. Your view is going under the navigation bar. You can fix it in storyboard by unchecking "Extend Edges - Under Top Bar" in Page View Controller scene. In code

- (void)viewDidLoad {
   [super viewDidLoad];
   self.edgesForExtendedLayout = UIRectEdgeNone;
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download