iPad Gurus: Apple wants us to support all orientations. I believe this means that a particular layout should either rotate so that all objects are positioned relative to the same OR, if that doesn't look good, then they should be moved, or two views should be designed and built.
If I rely on the built-in rotation mechanism, objects either change, or cross the edge of the page in the same orientation, or disappear altogether from view. It seems I can’t find the correct settings so that the objects are aligned exactly so that they appear in every orientation.
Moving results in many if statements in the view controller. Therefore, I do not think that Apple had this in mind.
I tried to replace the views and even view the controllers in the "willRotateToInterfaceOrientation" method, but this either crashes or the book views suddenly appear and vv. Moreover, two view controllers mean double coding for the same view.
There should be a proper way to handle orientation changes, but I searched the internet, documentation, and sample code in vain for something that works. How is this done correctly?
Thanks!
Arni source share