Skip to content

Presenting modal view controllers from UISplitViewController #9

@memmons

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.

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