Skip to content

Fix iOS8 issue where rotation methods are called twice#288

Closed
arielitovsky wants to merge 3 commits into
griddynamics-archive:masterfrom
arielitovsky:master
Closed

Fix iOS8 issue where rotation methods are called twice#288
arielitovsky wants to merge 3 commits into
griddynamics-archive:masterfrom
arielitovsky:master

Conversation

@arielitovsky

Copy link
Copy Markdown
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
Copy Markdown

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
Copy Markdown
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
Copy Markdown
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 griddynamics-archive#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 griddynamics-archive#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 griddynamics-archive#287
  Added iPhone 6/6+ support
  Cleaned up setter methods Added shadow color property from griddynamics-archive#294
  Updated UI properties from griddynamics-archive#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