问题2的答案有了 @interface UIViewController (Rotate) @end @implementation UIViewController (Rotate) - (NSUInteger)supportedInterfaceOrientations { if ([UIDevice currentDevice].userInterfaceIdiom == UIUserInterfaceIdiomPad) return UIInterfaceOrientationMaskAll; return UIInterfaceOrientationMaskPortrait; } @end 这个答案是兼容 iOS7 的做法。在 iOS8 and above 中,旋转这个含义已经没有意义了。
问题2的答案有了
这个答案是兼容 iOS7 的做法。在 iOS8 and above 中,旋转这个含义已经没有意义了。