ios - How show the Path inside a UIImageView? -
I use this command to get an image path in the iOS library:
UIImage * viewImage = your UIIMAGE // --- was created from my reference reference: ALAssetsLibrary * library = [[Elsace Library Alloc] init]; // Image to be saved in the camera roll [Library Written Images Photo Photo Album: [Visitor CGImage] Orientation: (Elastic Orientation) [Visual Image Orientation] Period: ^ (NS URL * Asset URL, NSER * Error) {if (error) {NSLog (@ "error"); } Other {nslog (@ "url% @", assetURL); }}]; I get this code in the subject:
I get some exams and the console log gives me a mail message:
url Property-Library: //asset/asset.JPG? Id = 408C8B00-23DC-4DCF-9837-C294720940F9 and ext = JPG Now I want to select it and put it inside a UIImageView, I try this:
imageView.image = @ "Property-Library: //asset/asset.JPG? Id = 408C8B00-23DC-4DCF-9837-C294720940F9 & ext = JPG"; But does not work, can someone help me?
you imageNamed: or imageWithContentsOfFile: Need to use, however, I do not think you can access it directly with the property library. Here is a stack overflow that shows how to use the Asset URL and to remove the image from the library
Comments
Post a Comment