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