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

Fixes view layout issue #57

Closed
wants to merge 1 commit into from
Closed

Fixes view layout issue #57

wants to merge 1 commit into from

Conversation

conradev
Copy link

I noticed that MGSplitViewController re-tiles its views after calling [UIViewController willAnimateRotationToInterfaceOrientation:duration:] on its children.

This seems to be incorrect behavior, because in the documentation for [UISplitViewController willAnimateRotationToInterfaceOrientation:duration:], it states:

By the time this method is called, the interfaceOrientation property is already set to the new orientation, and the bounds of the view have been changed. Thus, you can perform any additional layout required by your views in this method.

Fixes rotation so that the child view controllers are
notified of a change in rotation *after* MGSplitViewController
re-tiles its views, so that the child view controllers can
adjust accordingly.
@ai81
Copy link

ai81 commented Nov 26, 2012

seems this fix help with this: #76

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

Successfully merging this pull request may close these issues.

2 participants