I know this is a new feature and it may not be possible, but I would like to be able to use the asset catalog to organize my assets, but I get access to all my images programmatically. How do I access my images now? Should I still access them by file names as follows:
[UIImage imageNamed:@"my-asset-name.png"];
It seems that the resource directory does not reference the extension, so it would be more efficient to access it without ".png"?
The reason I ask instead of checking for myself is that even after deleting my assets and assets catalog and then cleaning the build folder, I can still access my assets in my application. This prevents me from checking the asset catalog when I implement it.
After looking at the asset catalog, I found "Contents.json" for each asset and is formatted like this:
{ "images" : [ { "idiom" : "universal", "scale" : "1x" }, { "idiom" : "universal", "scale" : "2x", "filename" : "my-asset@2x.png" } ], "info" : { "version" : 1, "author" : "xcode" } }
I'm still not sure how I should contact him, but maybe this will help?
ios objective-c xcode assets
RileyE Jun 11 '13 at 19:39 2013-06-11 19:39
source share