Why is the AutorotateToInterfaceOrientation method marked as not available?
I put this code in subclasses of UIViewController:
override func shouldAutorotateToInterfaceOrientation(toInterfaceOrientation: UIInterfaceOrientation) -> Bool {
return true
}
and I am getting this compile time error:
Cannot override 'shouldAutorotateToInterfaceOrientation' which was marked as not available
What is the problem? how can i solve this?
+3
source to share