Re: Getting Image from plist
Re: Getting Image from plist
- Subject: Re: Getting Image from plist
- From: Jens Alfke <email@hidden>
- Date: Fri, 01 Jul 2011 14:19:45 -0700
On Jul 1, 2011, at 1:55 PM, Fernando Aureliano wrote:
> cell.coverAuthor.image = [UIImage imageWithContentsOfFile:[data objectAtIndex:index] objectForKey:@"cover"];
That’s not going to compile. You probably want the RHS to be:
[UIImage imageWithContentsOfFile:[[data objectAtIndex:index] objectForKey:@“cover”]]
That should work, assuming that the value of the “cover” property is a valid file path.
—Jens_______________________________________________
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