I have an app originally developed for iOS 7.1 that I am now testing on an iPad through Xcode 6.1. When running on an iPad running 7.1 or in the 7.1 simulator the app funct
Use viewWillTransitionToSize:withTransitionCoordinator: like so:
- (void)viewWillTransitionToSize:(CGSize)size withTransitionCoordinator:(id)coordinator
{
[super viewWillTransitionToSize:size withTransitionCoordinator:coordinator];
// Will rotate
[coordinator animateAlongsideTransition:^(id context) {
// Will animate rotation
} completion:^(id context) {
// Did rotate
}];
}
You should take a look at the WWDC 2014 video "View Controller Advancements in iOS 8" where this is discussed.