Iphone 从摄影机卷中选择的视频的URL
我可以从我的应用程序启动相机卷。我想在用户选择视频时获取其URL,因为我想将其用于资产读/写 是否可以从摄像机滚动中获取所选视频的URL?如果是,如何进行Iphone 从摄影机卷中选择的视频的URL,iphone,objective-c,ios,xcode,cocoa-touch,Iphone,Objective C,Ios,Xcode,Cocoa Touch,我可以从我的应用程序启动相机卷。我想在用户选择视频时获取其URL,因为我想将其用于资产读/写 是否可以从摄像机滚动中获取所选视频的URL?如果是,如何进行 谢谢。将UIImagePickerControllerDelegate设置为您的类,并使用此代码检索url -(void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info{
谢谢。将UIImagePickerControllerDelegate设置为您的类,并使用此代码检索url
-(void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info{
[self dismissModalViewControllerAnimated:YES];
NSURL *assetURL = [info objectForKey:UIImagePickerControllerReferenceURL];
}
这是一个很好的资源:将UIImagePickerControllerDelegate设置为类,并使用此代码检索url
-(void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info{
[self dismissModalViewControllerAnimated:YES];
NSURL *assetURL = [info objectForKey:UIImagePickerControllerReferenceURL];
}
这是一个很好的资源:工作起来很有魅力。非常感谢你,工作很有魅力。非常感谢你。