Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Dismissing a landscape presented window doesn't return outgoingWindow orientation. #2

Open
markst opened this issue Dec 24, 2015 · 2 comments

Comments

@markst
Copy link

markst commented Dec 24, 2015

If I present a window with a root view controller which forces landscape orientation:

- (UIInterfaceOrientationMask)supportedInterfaceOrientations
{
    return UIInterfaceOrientationMaskLandscapeRight;
}
- (UIInterfaceOrientation)preferredInterfaceOrientationForPresentation
{
    return UIInterfaceOrientationLandscapeRight;
}
- (BOOL)shouldAutorotate
{
    return YES;
}

Upon dismissing the window:

[TTWindowManager.sharedInstance dismissTopWindowWithCompletion:NULL]

The outgoingWindow orientation remains landscape & I can't return the orientation back to portrait.

@markst
Copy link
Author

markst commented Jan 4, 2016

I'm trying to reproduce the issue with the demo project.
This is pretty much what I'm experiencing:
http://d.pr/f/1bRM7

@markst
Copy link
Author

markst commented Jan 4, 2016

Removing the backgroundAnimationWindow seems to improve this issue.

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

No branches or pull requests

1 participant