setStatusBarOrientation:animated: not working in iOS 6

后端 未结 3 701
余生分开走
余生分开走 2020-12-05 08:50

I\'ve used this code to force an orientation change back to portrait when the user is finished watching the video (it allows viewing in landscape mode), before popping the v

3条回答
  •  春和景丽
    2020-12-05 09:33

    setStatusBarOrientation method has changed behaviour a bit. According to Apple documentation:

    The setStatusBarOrientation:animated: method is not deprecated outright. It now works only if the supportedInterfaceOrientations method of the top-most full-screen view controller returns 0

提交回复
热议问题