0
私は2つの異なるXib、View1とView2でトウビューを持っています。 View2でビデオを編集します。私が必要とするのは、編集した後、View2のビデオをView1に渡すことです。Xibの間でビデオを渡すには?
私はそれを作る方法を知らない。私は渡すことを知っている(文字列または画像)が、私はビデオでそれを行う方法を知らない。
私はVIEW2で選択または記録ビデオの後にこれはコードです:
- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info {
[picker dismissViewControllerAnimated:YES completion:nil];
NSString *mediaType = info[UIImagePickerControllerMediaType];
if ([mediaType isEqualToString:(NSString *)kUTTypeMovie]) // Media is a video
{
videoUrl = info[UIImagePickerControllerMediaURL];
moviePlayer = [[MPMoviePlayerController alloc] initWithContentURL:videoUrl];
[self loadMoviePlayer:videoUrl];
}
}
おかげ
uはのViewControllerまたはビューについて話しています –