title: iPad - topmost modal view controller won't dismiss when there are multiple
body: <p>I'm working on a dual-iPad/iPhone application.</p>
  
  <p>I'm having a problem that is occurring on the iPad only:</p>
  
  <ul>
  <li>Root view controller is a UISplitViewController on iPad, UITabBarController on iPhone</li>
  <li>A modal UIViewController can appear over the root controller</li>
  <li>A modal UIViewController can appear over the previous modal controller</li>
  <li>On iPad, modal controllers are using UIModalPresentationStyle.PageSheet</li>
  </ul>
  
  <p>Everything works, except dismissing the topmost modal controller from the iPad--the method is called, but the modal view controller doesn't dismiss.  I dismiss by calling DismissModalViewControllerAnimated from the previous modal controller.</p>
  
  <p>Any ideas why this wouldn't be working on the iPad?</p>
  
  <p>In all cases, I call PresentModalViewController and DismissModalViewControllerAnimated from the parent controller to work its child modal controller.</p>
  
  <p>I'm using MonoTouch (you can tell by my casing of methods), but that is probably irrelevant.  I can take answers in Obj-C as well.</p>
  
  <p><strong>UPDATE, following might make what it should do more clear:</strong></p>
  
  <ul>
  <li>Root => Modal A => Modal B</li>
  <li>Dismissing Modal B should just return
  to Modal A</li>
  <li>Dismissing Modal A should just return
  to Root</li>
  </ul>