首页 > 代码库 > iOS 不允许横屏的简单代码

iOS 不允许横屏的简单代码

- (NSUInteger)application:(UIApplication *)application supportedInterfaceOrientationsForWindow:(UIWindow *)window

{

    return UIInterfaceOrientationMaskPortrait;

}