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

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -