swift - Int is not convertible to UIInterfaceOrientationMak for supportedInterfaceOrientations() -
i have problem xcode 7. have tried research cannot come solution. error int not convertible uiinterfaceorientationmask. code below:
override func supportedinterfaceorientations() -> uiinterfaceorientationmask { if visibleviewcontroller kinwebbrowserviewcontroller { return int(uiinterfaceorientationmask.all.rawvalue) } return int(uiinterfaceorientationmask.portrait.rawvalue) }
thanks
swift 3.x
override var supportedinterfaceorientations: uiinterfaceorientationmask { return visibleviewcontroller kinwebbrowserviewcontroller ? .all : .portrait }
Comments
Post a Comment