Reputation: 2983
I know this question has been asked for many times. I've searched but didn't get the proper answer which one will be able to implement nicely.
Question : How can I handle the Landscape and Portrait Orientations for iPad Apps ?
Note : In interface builder's Size Inspector -> Autosizing we can set the orientations for Images but when we have a complex view how can I change the orientation from Portrait to Landscape nicely ? If we need to call different .xib , how to do that ?
Thanks
Upvotes: 0
Views: 1937
Reputation: 26390
You can use the UIViewController
reference document
These contain methods like didRotate
, willRotate
etc and u can override them according to your needs. When the rotation of the view occurs u can adjust the view's size through the auto-sizing options. You can know more about auto-resizing options in UIView
reference document
Pls go through the UIViewAutoresizing part.
Upvotes: 2