2012-12-03 4 views
0

내 응용 프로그램에는 비디오 링크 목록을 보여주고있는 UIWebview가 있습니다. 해당 링크 중 하나를 클릭하면 MPMoviePlayer가 실행됩니다. 그러나 전체 화면 모드에서는 필요할 때 회전하지 않습니다.MPMoviePlayer가 회전하지 않습니다.

웹 뷰에서 제어 할 수 없으므로 지금 회전하는 방법.

+0

가로 모드가 작동하지 않습니까? –

+0

예. 비디오는 세로 모드로 제한됩니다 – WakkaoW

+0

아래 코드를 사용해 보셨습니까? - (BOOL) shouldAutorotateToInterfaceOrientation : (UIInterfaceOrientation) interfaceOrientation { return YES; } –

답변

2

shouldautorotate 어떤 IOS 6

0

포스트 AppDelegate.m 파일에이 방법을 더 사용할 수 없기 때문에 당신은 IOS 6를 사용 - (void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration {} 를 사용하는 경우 ..

-(NSUInteger)application:(UIApplication *)application supportedInterfaceOrientationsForWindow:(UIWindow *)window 
    { 
     return UIInterfaceOrientationMaskPortrait | UIInterfaceOrientationMaskLandscapeLeft | UIInterfaceOrientationMaskLandscapeRight;  
    } 
+0

@WakkaoW 또한이 답변을 시도합니다 .. http://stackoverflow.com/questions/4740732/iphone-force-mpmovieplayercontroller-to-play-video-in-landscape-mode :) –

0

iOS6의 경우 당신은 또한 확인해야한다 info.plist에서 지원되는 인터페이스 방향 키에 가로 방향이 추가되었습니다.

관련 문제