Get a regular NSString path for UIImagePickerControllerReferenceURL
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.
精彩评论