I am new to orientation changes using XIBs.
I saw many questions like this, and this, but I can't seem to find simple solution here. I don't want to use any 3rd party framework that will do it, but would rather have step by step way of how should I redesign my XIBs and/or how should I create outlets. And what all should go inside XIB view code (the UIView derivative).
The view XIB don't have any outlets so far and I am not sure which outlets I should provide. Here is the structure of XIB:
Like the above, I would have 2-3 more XIBs from which I load views, all into same view controllers.
Again, I know how UIViewController can respond to orientation change (preferredInterfaceOrientationForPresentation
and shouldAutorotateToInterfaceOrientation
), but do not know how to load respective XIB with proper outlets upon each of such events.
,