iPad Application Comes Up in Portrait Orientation After Screen Unlock Regardless of Orientation on Screen Sleep

给你一囗甜甜゛ 提交于 2019-12-11 06:57:13

问题


I have my iPad application in landscape mode sitting at my desk. When the iPad's screen locks, I unlock the screen. When the application is shown again, the application is in portrait mode and will remain so until I pick up my iPad and move it around to reset the orientation.

Is there some sort of check that I should make to leave it in the orientation that it is in when the view appears?


回答1:


You can try checking [[UIApplication sharedApplication] statusBarOrientation] and then setting the correct orientation from there.



来源:https://stackoverflow.com/questions/4755051/ipad-application-comes-up-in-portrait-orientation-after-screen-unlock-regardless

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!