Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Presenting modal view controllers from UISplitViewController #9

Open
memmons opened this issue Oct 8, 2011 · 0 comments
Open

Presenting modal view controllers from UISplitViewController #9

memmons opened this issue Oct 8, 2011 · 0 comments

Comments

@memmons
Copy link

memmons commented Oct 8, 2011

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.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant