Correct way to programmatically update constraints when the device orientation changes?
问题 I'm using storyboard and autolayout , and setting the constraints in IB as IBOutlet in the corresponding view controller. I'm reading several posts regarding how to update the constraints to be different in portrait and in landscape but I'm still not sure of how should I do this: Should I set the new constraints in -viewWillTransitionToSize:withTransitionCoordinator: method, or in updateViewConstraints method? When the new constraints are set, should I call [self.view