Re: Loading image resources
Re: Loading image resources
- Subject: Re: Loading image resources
- From: Quincey Morris <email@hidden>
- Date: Sun, 14 Sep 2014 05:52:29 +0000
On Sep 13, 2014, at 21:33 , Charles Jenkins <email@hidden> wrote:
> Of course I meant that the imageFileName returned by the API call is nil.
Ah, OK, but you still need to verify that everything is in place. For example, if you forgot to add the asset folder to the target, the image files wouldn’t be in the built app.
Also, I’m not entirely certain that “png” is the correct extension for an image compiled from xcassets. (I don’t have a project handy where I can check.) Perhaps you really do need to be using different API — ‘imageNamed:’ which I mentioned before, but I also notice that NSBundle AppKit additions also have ‘imageForResource:’ and ‘URLForImageResource:’ which don’t take an extension. Perhaps they exist exactly for this situation?
_______________________________________________
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