1

Xcode 7 に別の問題があります。調査を試みましたが、解決策が見つかりません。エラーは、Int is not convertible to UIInterfaceOrientationMask です。以下のコード:

override func supportedInterfaceOrientations() -> UIInterfaceOrientationMask {
    if visibleViewController is KINWebBrowserViewController { return Int(UIInterfaceOrientationMask.All.rawValue) }
    return Int(UIInterfaceOrientationMask.Portrait.rawValue)
}

ありがとう

4

1 に答える 1

1

スウィフト 3.x

override var supportedInterfaceOrientations: UIInterfaceOrientationMask {
    return visibleViewController is KINWebBrowserViewController ? .all : .portrait
}
于 2015-06-13T22:56:57.413 に答える