强制取消横屏

   appdelegate 中func application(application:UIApplication,supportedInterfaceOrientationsForWindow window:UIWindow?)->UIInterfaceOrientationMask{

     returen UIInterfaceOrientationMask.Portrait

}

你可能感兴趣的:(强制取消横屏)