I'm working on a dual-iPad/iPhone application.
I'm having a problem that is occurring on the iPad only:
- Root view controller is a UISplitViewController on iPad, UITabBarController on iPhone
- A modal UIViewController can appear over the root controller
- A modal UIViewController can appear over the previous modal controller
- On iPad, modal controllers are using UIModalPresentationStyle.PageSheet
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.
Any ideas why this wouldn't be working on the iPad?
In all cases, I call PresentModalViewController and DismissModalViewControllerAnimated from the parent controller to work its child modal controller.
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.
UPDATE, following might make what it should do more clear:
- Root => Modal A => Modal B
- Dismissing Modal B should just return to Modal A
- Dismissing Modal A should just return to Root