I put this code to a UIViewController
subclass:
override func shouldAutorotateToInterfaceOrientation(toInterfaceOrientation: UIInterfaceOrientation) -> Bool {
return true
}
and I get this compile time error:
Cannot override 'shouldAutorotateToInterfaceOrientation' which has been marked unavailable
What is the problem and how do I solve this?
shouldAutorotateToInterfaceOrientation
is deprecated try using shouldAutorotate()
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