登录
上传中....
iOS 设置app禁止横屏
在 AppDelegate.m中添加如下代码:
-(UIInterfaceOrientationMask)application:(UIApplication *)application supportedInterfaceOrientationsForWindow:(UIWindow *)window{ return UIInterfaceOrientationMaskPortrait; }