Dismissing a landscape presented window doesn't return outgoingWindow orientation.
markst opened this issue · 2 comments
markst commented
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 commented
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 commented
Removing the backgroundAnimationWindow
seems to improve this issue.