Getting Image from plist
Getting Image from plist
- Subject: Getting Image from plist
- From: Fernando Aureliano <email@hidden>
- Date: Fri, 01 Jul 2011 17:55:26 -0300
Hi,
I'm reading data from an plist, and I'm having problems for get the image.
The code for text look like this:
cell.auhorLabel.text = [[data objectAtIndex:index] objectForKey:@"author"];
Works fine.
The code to get a image em put in uiimageview look like this:
cell.coverAuthor.image = [UIImage imageWithContentsOfFile:[data
objectAtIndex:index] objectForKey:@"cover"];
yeah, I know, this last line is strange.
How is the right way?
Thanks!
--
*Fernando Aureliano*
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden