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

javascript - three.js lot of meshes optimization -

smartface.io - Proper way to change color scheme for whole application -

Email notification in google apps script -