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

Fix iOS8 issue where rotation methods are called twice #288

Closed
wants to merge 3 commits into from

Conversation

arielitovsky
Copy link
Contributor

When running on iOS 8 GM, I noticed that methods like willRotateToInterfaceOrientation:toInterfaceOrientation: were getting called twice on any UIViewControllers that were children of MMDrawerController. This fix should help.

arielitovsky and others added 3 commits March 24, 2014 15:14
…here they are automatically called from [UIViewController viewWillTransitionToSizeWithTransitionCoordinator:]
@mackworth
Copy link

Thank you for this. This is crucial if you have a master-detail splitview inside the main window. Without this, you'll get the "Unbalanced calls to begin/end appearance transitions" error msg and your viewWillAppear method won't be called.

@kcharwood
Copy link
Contributor

Do you have an example project pushed up anywhere showing this behavior?

@kcharwood kcharwood added the bug label Mar 16, 2015
@kcharwood kcharwood added this to the 0.6.0 milestone Mar 16, 2015
kcharwood added a commit that referenced this pull request Mar 17, 2015
kcharwood added a commit that referenced this pull request Mar 17, 2015
@kcharwood
Copy link
Contributor

Thanks for the PR! I took it, and cleaned it up in #351

🍻

@kcharwood kcharwood closed this Mar 17, 2015
boherna added a commit to boherna/MMDrawerController that referenced this pull request Sep 4, 2015
* upstream/master: (21 commits)
  Fixes mutualmobile#367
  Added notes for reference
  Add missing appearance transition forwarding
  Fixed changelog
  Updated changelog
  Updated changelog
  updated changelog
  Fix infinite, recursive init call for subclass
  Replaced iOS 6 deprecated `-shouldAutorotateToInterfaceOrientation:` method with new one
  Cleaned up PR mutualmobile#288
  Prevent several rotation methods from getting called twice in iOS8, where they are automatically called from [UIViewController viewWillTransitionToSizeWithTransitionCoordinator:]
  Update MMDrawerController.m
  Updated documentation
  Removed pre iOS 7 support
  Switched id to instancetype
  Fix for mutualmobile#287
  Added iPhone 6/6+ support
  Cleaned up setter methods Added shadow color property from mutualmobile#294
  Updated UI properties from mutualmobile#338
  Call removeFromParentViewController after removeFromSuperview in setCenterViewController to avoid EXC_BAD_ACCESS due to nil view value
  ...

Conflicts:
	MMDrawerController/MMDrawerController.h
	MMDrawerController/MMDrawerController.m
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants