当我不玩任何东西时,一切正常(我正在调用 beginnotifications 等,并使用方向来旋转我的视图)。但是在我开始玩之后,我MPMoviePlayerController
每次尝试
UIDeviceOrientation orientation = [[UIDevice currentDevice] orientation];
orientation
得到UIDeviceOrientationUnknown
一个.
有什么线索吗?当电影停止时,一切都恢复正常。我需要这个方向来旋转播放器的窗口,因为我使用的是 Iphone OS 3.1,所以我不能直接使用 MPMovie 播放器控制器中的 view 属性。