I see different examples where constraints are set. Some set them in viewDidLoad
/ loadView
(after the subview was added). Others set them in the method updateViewConstraints
, which gets called by viewDidAppear
.
When I try setting constraints in updateViewContraints
there can be a jumpiness to the layout, e.g. slight delay before the view appears. Also, if I use this method, should I clear out existing constraints first i.e. [self.view [removeConstraints:self.view.constraints]
?