iOS 8 upside down orientation, XCode option enabled, still doesn't work

后端 未结 3 910
我在风中等你
我在风中等你 2020-12-05 23:57

I have a universal application being developed in iOS8 (XCode 6.1.1). It will support all the 4 orientations (left, right, portrait & upside down).

The problem i

3条回答
  •  余生分开走
    2020-12-06 00:47

    With Swift 2.1, you can simplify @Cleversou’s answer to:

    override func supportedInterfaceOrientations() -> UIInterfaceOrientationMask
    {
      return .All
    }
    

    With Swift 2.3

    override var supportedInterfaceOrientations : UIInterfaceOrientationMask {
      return .all
    }
    

提交回复
热议问题