阅读背景:

设备旋转通知没有按照预期的iOS Swift工作

来源:互联网 
    func shouldirotate(){

    var whichwaywhere: String {

        if UIDevice.currentDevice().orientation == UIDeviceOrientation.LandscapeLeft {
            return "left"
        }
        if UIDevice.currentDevice().orientation == UIDeviceOrientation.LandscapeRight {
            return "right"
        }
        if UIDevice.currentDevice().orientation == UIDeviceOrientation.PortraitUpsideDown {
            return "down"
        }
        return "I don't Care"
    }
    println(whichwaywhere)
}
    func shouldirotate(){

    var whichwaywher



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: