一切工作正常,而我沒有玩任何東西(我打電話beginnotifications等,並使用方向旋轉我的看法)。但我開始與MPMoviePlayerController
每次播放後,當我嘗試爲什麼在MPMoviePlayerController中播放影片時無法正確檢索UIDeviceOrientation?
UIDeviceOrientation orientation = [[UIDevice currentDevice] orientation];
的orientation
得到一個UIDeviceOrientationUnknown
。
任何線索? 當電影停止一切工作再次正常。 我需要這個方向來旋轉播放器的窗口,因爲我使用Iphone OS 3.1,所以我不能直接使用MPMovie播放器控制器內的視圖屬性。