다음 코드를 사용하여 앱에 YouTube 동영상을 표시하려고합니다. 비디오 플레이어가 나타나고 잠시 동안 컨트롤이 표시되면 무비 플레이어가 수축됩니다. 앱이 충돌하지 않습니다. 어떤 아이디어가이 작품을 만드는 방법?MPMoviePlayerViewController에 YouTube 무비보기 - iPhone
MPMoviePlayerViewController *mpViewController =
[[MPMoviePlayerViewController alloc]
initWithContentURL:[NSURL URLWithString:@"http://www.youtube.com/watch?v=VKsVSBhSwJg"]];
[mpViewController shouldAutorotateToInterfaceOrientation:UIInterfaceOrientationLandscapeRight];
[[UIApplication sharedApplication] setStatusBarOrientation:UIInterfaceOrientationLandscapeRight animated:NO];
[self presentMoviePlayerViewControllerAnimated:mpViewController];
[mpViewController release];
아, 나는 그것을 읽었지 만 2009 년으로되어서 지금까지 업그레이드되었을 것 같았습니다. – Chris
오 예! 물론 정책에 반대합니다. 그 점을 지적 해 주셔서 감사합니다. – fsaint