ios - Why shouldAutorotateToInterfaceOrientation method marked as unavailable? -


i put code uiviewcontroller subclas:

override func shouldautorotatetointerfaceorientation(tointerfaceorientation: uiinterfaceorientation) -> bool {     return true } 

and compile time error:

cannot override 'shouldautorotatetointerfaceorientation' has been marked unavailable

what problem? how can solve this?

shouldautorotatetointerfaceorientation deprecated try using shouldautorotate()


Comments

Popular posts from this blog

Email notification in google apps script -

c++ - Difference between pre and post decrement in recursive function argument -

javascript - IE11 incompatibility with jQuery's 'readonly'? -