MoviePlayer をポートレート モードで使用できるかどうかを知りたいです。
ご協力いただきありがとうございます。
T.
" APIを使用[moviePlayer setOrientation:UIDeviceOrientationPortrait animated:NO];
すると、アプリケーションは Apple Store から拒否されます
あなたはできる。
http://blogs.oreilly.com/iphone/2008/11/the-joys-of-vertical-audio.htmlにあるEricaSadunの記事を参照してください。
ただし、これを行う方法についてはAppleによって文書化されていないため、推奨されないことに注意してください。
@interface MPMoviePlayerController (extend)
-(void)setOrientation:(int)orientation animated:(BOOL)value;
@end
moviePlayer = [[MPMoviePlayerController alloc] initWithContentURL:movieUR];
[moviePlayer setOrientation:UIDeviceOrientationPortrait animated:NO];
if (moviePlayer)
{
[self.moviePlayer play];
}
上記のコードを実装します。あなたはあなたが望むものを手に入れるでしょう。
それが役立つことを願っています。
サーガル。
次の質問をご覧ください。同じ解決策があります。