I updated Xcode 8 beta 3 to Xcode 8 beta 4 and I am actually correcting some bugs due to swift changement.
Function :
override func shouldAutorotate() -> Bool {
return false
}
Print an error and Xcode told me that this function is not override. It's mean that the function does not exist anymore.
override var shouldAutorotate
This var has just get properties so I can't change the value by this way.
So how can I work with autorotate now ?
Thanks !
This is the right way
override var shouldAutorotate: Bool {
return false
}
Swift 3 Syntax
open override var shouldAutorotate: Bool {
get {
return false
}
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With