Skip to content

Presenting modal view controllers from UISplitViewController #9

Description

@memmons

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions