标签:trait uiwindow class 支持 min ceo ret port window
- (UIInterfaceOrientationMask)application:(UIApplication *)application supportedInterfaceOrientationsForWindow:(UIWindow *)window{
if (kIsIpad) { // iPad 支持旋转屏幕
return UIInterfaceOrientationMaskAll;
}
// iPhone 只支持竖屏
return UIInterfaceOrientationMaskPortrait;
}
标签:trait uiwindow class 支持 min ceo ret port window
原文地址:http://www.cnblogs.com/10-19-92/p/6090396.html