加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

swift 中的 supportedInterfaceOrientationsForWindow

发布时间:2020-12-14 02:00:01 所属栏目:百科 来源:网络整理
导读:本文地址 大家在写swift 的时候是不是发现 func application(application: UIApplication,supportedInterfaceOrientationsForWindow window: UIWindow?) - Int { 里面 UIInterfaceOrientationMaskPortrait 等等枚举不见了…..而且还不给提示…….所以到OC里

本文地址
大家在写swift 的时候是不是发现 func application(application: UIApplication,supportedInterfaceOrientationsForWindow window: UIWindow?) -> Int {
里面
UIInterfaceOrientationMaskPortrait 等等枚举不见了…..而且还不给提示…….所以到OC里代码里把枚举的值,直接自己换算写上去
UIInterfaceOrientationMaskPortrait = 1<<1
UIInterfaceOrientationMaskLandscapeLeft = 1 << 2
UIInterfaceOrientationMaskLandscapeRight = 1 << 3
UIInterfaceOrientationMaskPortraitUpsideDown = 1<<4

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读