In my app, I would allow the user to pick a photo from the gallery (or snap a photo/video with the camera).
I need to save the path in a开发者_运维知识库 db to retrieve it later, but I don't understand how I can do it.
** EDIT **
I didnt' resolve this issue, so now I save the images locally and I save the local path in the db.
I've never used UIImagePickerControllerReferenceURL
, but I'd assume that you use it as any other URL:
[UIImage imageWithData:[NSData dataWithContentsOfURL:url]];
精彩评论