Andrew
Andrew

Reputation: 16051

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?

Upvotes: 1

Views: 894

Answers (1)

Arne
Arne

Reputation: 2674

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.

Upvotes: 1

Related Questions