Is it possible to change the constraints when the device is rotated? How might this be achieved?
A simple example might be two images which, in portrait, are stacked
I am following the same approach as yours (no nib files or storyboards). You have to update your constraints in updateViewConstraints
method (by checking the device orientation). There is no need to call setNeedsUpdateConstraints
in updateViewConstraints
because as soon as you change the device orientation the last method is called automatically.