开发者

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.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜