Note that there are some explanatory texts on larger screens.

plurals
  1. POUIViewController container with children for landscape/portrait
    text
    copied!<p>I have an <code>UIViewController</code> container with two <code>UIViewController</code> children implementing two different way of browsing a collection of items (one coverflow, one list), one for each orientation (landscape/portrait). When you tap an item the container show another <code>UIViewController</code> child (this one is landscape/portrait compatible), providing details about the item.</p> <p>When rotating, I would like an effect like in the Apple <em>Music</em> app on iOS, when you rotate the list, the list keeps its orientation and fade into the coverflow which is in the new orientation.</p> <p>I can fade-out the list at the beginning of the rotation and fade-in the coverflow at the end but I can't fade the list into the coverflow (or any other animation involving the two views at the same time) because I don't know how to force the list to stay in portrait and the coverflow to stay in landscape.</p> <p>I know I can force the container to stay in portrait with a <code>shouldAutorotate = NO</code> and use orientation notifications to show the landscape <code>UIViewController</code> as modal but I need the container to rotate in order to show my detail <code>UIViewController</code> in the right orientation.</p> <p>I would like to keep a container with two children for each orientation but I would also accept a solution with a single <code>UIViewController</code> and two <code>UIView</code> for each orientation.</p> <p>(iOS5+ compatibility is needed)</p>
 

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