我正在使用下面的代码播放电影但是想知道当用户按下按钮时是否有办法将我保存在应用程序中的此电影文件保存到设备的相机胶卷。
NSString *moviePath = [[[NSBundle mainBundle] resourcePath]
stringByAppendingPathComponent:@"video.mp4"];
MPMoviePlayerController *moviePlayer = [[MPMoviePlayerController alloc]
initWithContentURL:[NSURL fileURLWithPath:moviePath]];
moviePlayer.movieControlMode = MPMovieControlModeDefault;
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(movieFinishedCallback:)
name:MPMoviePlayerPlaybackDidFinishNotification object:moviePlayer];
[moviePlayer play];
答案 0 :(得分:0)