Split82/HMGLTransitions — Issue #9: Presenting modal view controllers from UISplitViewController
Author: memmons
Created: 2011-10-08 10:06:39+00:00
State: open

I have a UISplitViewController. In the detail view, I have this:

FlipTransition *transition = [[FlipTransition alloc] init];
transition.transitionType = FlipTransitionLeft;
[[HMGLTransitionManager sharedTransitionManager] setTransition:transition];
[[HMGLTransitionManager sharedTransitionManager] presentModalViewController:controller onViewController:self];
[transition release];

On modal view dismissal I have this:

FlipTransition *transition = [[FlipTransition alloc] init];
transition.transitionType = FlipTransitionRight;
[[HMGLTransitionManager sharedTransitionManager] setTransition:transition];
[[HMGLTransitionManager sharedTransitionManager] dismissModalViewController:controller];
[transition release];

This does not work. Inside `-dismissModalViewController:` the following code causes the issue:

self.currentController = [modalViewController presentingViewController];

Instead of returning the controller which actually presented the view, it returns the UISplitViewController instead. -- this appears to be a bug in iOS5 . I've filed a radar -- #10255196.