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