I have two view controllers, each one loading their view from their own
.xib file. I’m using size classes to display a different layout based on whether the device is in portrait and landscape mode.
The first view works fine: I can change orientations and the view is updated as in the size classes.
However the second view doesn’t work properly. If I present it while in portrait mode, changing to landscape doesn’t update the view the way it should. However presenting it while in landscape mode works fine, and I can rotate back to portrait without issues.
I haven’t done anything differently in the two
.nib‘s, and I simply can’t figure out why it’s not working properly.
Have anyone experienced the same issue before, and know how I would go about fixing it?