모든 것이 잘 동작하지 않습니다. (beginnotifications 등을 호출하고 방향을 사용하여 내보기를 회전시킵니다). 하지만 MPMoviePlayerController
마다 함께 연주를 시작할 후에 나는MPMoviePlayerController에서 동영상을 재생하는 동안 UIDeviceOrientation을 올바르게 검색 할 수없는 이유는 무엇입니까?
UIDeviceOrientation orientation = [[UIDevice currentDevice] orientation];
orientation
는 UIDeviceOrientationUnknown
얻을 때.
단서가 있습니까? 동영상이 멈 추면 모든 것이 올바르게 작동합니다. Iphone OS 3.1을 사용하므로 MPMovie 플레이어 컨트롤러 내부에서 뷰 속성을 직접 사용할 수 없으므로 플레이어의 창을 회전하려면이 방향이 필요합니다.