0
我有一個tabbarcontroller內「VideoLecturesDetails」,這個類有這個方法MPMoviePlayerViewController旋轉問題
-(IBAction) playVideo{
NSString *fileURL = [NSString stringWithFormat:@"%@" ,FileName];
NSURL* videoURL = [NSURL URLWithString:fileURL];
MPMoviePlayerViewController* theMoviePlayer = [[MPMoviePlayerViewController alloc] initWithContentURL:videoURL];
[theMoviePlayer shouldAutorotate];
[self presentMoviePlayerViewControllerAnimated:theMoviePlayer];
}
-(BOOL)automaticallyForwardAppearanceAndRotationMethodsToChildViewControllers {
return NO;
}
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation{
return YES;//This allows all orientations, set it to whatever you want
}
所以在播放視頻的自動旋轉不工作,我怎麼能使用此方法能自動旋轉。
什麼版本的IOS的是什麼呢? – 2013-02-10 15:05:53
我正在使用IOS 6 – 2013-02-12 10:12:06