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

Interface Orientation #1

Open
CooperRS opened this issue Sep 25, 2013 · 4 comments
Open

Interface Orientation #1

CooperRS opened this issue Sep 25, 2013 · 4 comments

Comments

@CooperRS
Copy link

Custom transition is broken in landscape orientation

@ashfurrow
Copy link
Contributor

Yeah, I'm waiting to hear back on Apple about this, since it's a larger problem than just our project. Interface rotation is broken for all non-portrait presentations. Probably a result of the iPad beta not being ready for WWDC. Take a look at Stack Overflow to see just how many people are having problems with this.

I'll update the project when I find a suitable solution.

@CooperRS
Copy link
Author

Already had the problem with my own implementation. I first though it was me being too stupid, but then I will have to wait for Apple.

Thanks for your answer!

@CooperRS CooperRS reopened this Oct 26, 2013
@CooperRS
Copy link
Author

I think using autolayout may be a possible solution to this problem. Could not test it though...

@skirsche
Copy link

Here is where I found how to make it work in landscape orientation:
http://www.brightec.co.uk/blog/ios-7-custom-view-controller-transitions-and-rotation-making-it-all-work

The linked article contains this response from Apple:

"For custom presentation transitions we setup an intermediate view between the window and the windows rootViewController's view. This view is the containerView that you perform your animation within. Due to an implementation detail of auto-rotation on iOS, when the interface rotates we apply an affine transform to the windows rootViewController's view and modify its bounds accordingly. Because the containerView inherits its dimensions from the window instead of the root view controller's view, it is always in the portrait orientation."

"If your presentation animation depends upon the orientation of the presenting view controller, you will need to detect the presenting view controller's orientation and modify your animation appropriately. The system will apply the correct transform to the incoming view controller but you're animator need to configure the frame of the incoming view controller."

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

3 participants