不要在完成后自动关闭MPMoviePlayerViewController吗?

时间:2013-05-27 03:41:21

标签: ios objective-c mpmovieplayercontroller

在我的应用中,使用MPMoviePlayerViewController,电影在完成播放后会自动被解除。我希望控制器只在单击完成按钮时被解雇。这是我的代码:

NSURL *movieURL = [NSURL URLWithString:self.postInfo.referenceText];
UIGraphicsBeginImageContext(CGSizeMake(1,1));
MPMoviePlayerViewController *controller = [[[MPMoviePlayerViewController alloc] initWithContentURL:movieURL] autorelease];
UIGraphicsEndImageContext();
AppDelegate *appDelegate = (AppDelegate *)[UIApplication sharedApplication].delegate;
[appDelegate.window.rootViewController presentMoviePlayerViewControllerAnimated:controller];

0 个答案:

没有答案