In a certain scenario, I wish to replace the presented Nib for a View Controller upon Device Orientation Change.
Something like this:
I wish for both of the Nib files to be owned by the same View Controller, so they react to the same IBActions, IBOutlets, etc...
Also, Auto Layout will be a bit complicated for this specific scenario (the images I've used here are just to demonstrate the issue - the actual implementation is more complicated...).
Apple example for this scenario is problematic as it uses a Segue for this action. If, for example, the VC is part of a Navigation Controller stack, it will make it very problematic to react to the Back button click - instead of just Popping the VC I will have to Pop 2 VCs (I think):
Intuitively, I'm thinking about replacing the Nib file (and not performing a Segue).
Is it a valid action?
If so, how should I perform it in code?
Also, can it be achieved in Storyboard, or do I need to use a .xib file?