【发布时间】:2011-02-28 16:35:09
【问题描述】:
当我不玩任何东西时一切正常(我正在调用 beginnotifications 等,并使用方向来旋转我的视图)。但是在我开始玩MPMoviePlayerController之后,我每次尝试
UIDeviceOrientation orientation = [[UIDevice currentDevice] orientation];
orientation 得到一个 UIDeviceOrientationUnknown。
有什么线索吗? 当电影停止时,一切都恢复正常。 我需要这个方向来旋转播放器的窗口,因为我使用的是 Iphone OS 3.1,所以我不能直接使用 MPMovie 播放器控制器中的 view 属性。
【问题讨论】:
标签: iphone mpmovieplayercontroller mpmovieplayer uidevice uiinterfaceorientation