Since willAnimateRotationToInterfaceOrientation:duration: is deprecated in iOS8, one needs to use viewWillTransitionToSize:withTransitionCoordinator: i
willAnimateRotationToInterfaceOrientation:duration:
viewWillTransitionToSize:withTransitionCoordinator:
As per the docs, remember to call super
super
- (void)viewWillTransitionToSize:(CGSize)size withTransitionCoordinator:(id)coordinator { [super viewWillTransitionToSize:size withTransitionCoordinator:coordinator]; // ... }
Otherwise child view controllers will not get the message forwarded on to them.