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
Post a Comment