zoukankan      html  css  js  c++  java
  • iOS 代码控制iPhone&iPad旋转

     
    在APPDelegate中添加如下代码
     
     

    - (UIInterfaceOrientationMask)application:(UIApplication *)application supportedInterfaceOrientationsForWindow:(UIWindow *)window{

        if (kIsIpad) {     // iPad 支持旋转屏幕

            return UIInterfaceOrientationMaskAll;

        }

        

        // iPhone 只支持竖屏

        return UIInterfaceOrientationMaskPortrait;

    }

  • 相关阅读:
    FZU 2113 BCD Code 数位dp
    Gym 100917L Liesbeth and the String 规律&&胡搞
    Gym 100917C Constant Ratio 数论+暴力
    CF149D Coloring Brackets
    P4342 [IOI1998]Polygon
    P4316 绿豆蛙的归宿
    P1439 【模板】最长公共子序列
    Noip 2013 真题练习
    洛谷比赛 「EZEC」 Round 4
    P5024 保卫王国
  • 原文地址:https://www.cnblogs.com/10-19-92/p/6090396.html
Copyright © 2011-2022 走看看