Skip to content

Instantly share code, notes, and snippets.

@MaximAlien
Created December 8, 2015 14:50
Show Gist options
  • Save MaximAlien/0bf9e39ed1f6997d79e1 to your computer and use it in GitHub Desktop.
Save MaximAlien/0bf9e39ed1f6997d79e1 to your computer and use it in GitHub Desktop.
[iOS] Delegate method to handle rotation
- (void)viewWillTransitionToSize:(CGSize)size withTransitionCoordinator:(id)coordinator
{
[super viewWillTransitionToSize:size withTransitionCoordinator:coordinator];
[coordinator animateAlongsideTransition:^(id<UIViewControllerTransitionCoordinatorContext> _Nonnull context) {
} completion:^(id<UIViewControllerTransitionCoordinatorContext> _Nonnull context) {
}];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment