ssabetan ssabetan - 5 days ago 5
iOS Question

iOS Auto Layout Constraint's Jumping After View Has Loaded

Made a quick video demonstrating the issue here: https://vid.me/9kB5

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

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;
}