开发者

Get a regular NSString path for UIImagePickerControllerReferenceURL

开发者 https://www.devze.com 2023-03-30 20:27 出处:网络
This code: NSString *imageString = [info objectForKey:开发者_如何学编程UIImagePickerControllerRefrenceURL];

This code:

NSString *imageString = [info objectForKey:开发者_如何学编程UIImagePickerControllerRefrenceURL];
NSLog(@"%@", imageString);

Returns this:

assets-library://asset/asset.JPG?id=1000000002&ext=JPG

Is there a proper way to convert this into a path?


Why do you want to do that? Can't you go through the Assets Library? See the documentation for details. Upon success, ALAssetsLibraryAssetForURLResultBlock will give you an ALAsset, which gives you in turn the media that you found in your reference URL.

0

精彩评论

暂无评论...
验证码 换一张
取 消