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

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

c# - Exception when attempting to modify Dictionary -