私のアプリでYouTubeムービーを試してみるために、次のコードを使用しています。ビデオプレーヤーが表示され、コントロールが1秒間表示され、ムービープレーヤーが後退します。アプリはクラッシュしません。どのようにこの作品を作るためのアイデア?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