Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The best way to get rotation methods invoked on <em>all</em> your View Controllers is to use an Apple supplied Root View Controller and display any child views through those controllers. These include UINavigationController, UITabBarController, and on the iPad UISplitViewController. </p> <p>Navigation events will only get sent to the root view controller, that is the view controller of the view in the main UIWindow of your app. This is not documented, but can be deduced with some work. Apple's root view controllers seem to be capable of propagating rotation events. </p> <p>This can be achieved manually (i.e. without an Apple RVC) but requires keeping track of all your child VCs and using KVC on some readonly properties, which would likely get you kicked out of the app store.</p> <p>In your case you <em>could</em> use a navigation controller, hiding the navigation bar and toolbar as appropriate. Initialize it with your current root view controller and add the navigation controller view to the window, instead of your current root view controller. When you need to display the details, simply push the details on the navigation stack. If you don't like the default animation you can apply your own transition with a little work.</p> <p>See below for more details on the navigation controller.</p> <p><a href="http://developer.apple.com/library/ios/#documentation/UIKit/Reference/UINavigationController_Class/Reference/Reference.html" rel="nofollow noreferrer">http://developer.apple.com/library/ios/#documentation/UIKit/Reference/UINavigationController_Class/Reference/Reference.html</a></p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload