4、[ iOS ] 禁止橫屏

weixin_33936401發表於2016-02-19
/**
 * 功能:禁止橫屏
 */
- (UIInterfaceOrientationMask)application:(UIApplication *)application supportedInterfaceOrientationsForWindow:(nullable UIWindow *)window
{
    return UIInterfaceOrientationMaskPortrait;
}

相關文章