There is an images.xcassets
in my project, it contains an icons
folder and two subfolders (firstFolder
, secondFolder
) with images. Both of my subfolders have the same number of icons and the same icons names (for different themes of my app).
So what I'm looking for: I need to get the needed icon(for current theme) from my bundle.
I've tried to do something like this:
NSBundle* bundle = [NSBundle bundleForClass:[self class]];
NSString *imageName = [bundle.bundlePath stringByAppendingPathComponent:@"icons/firstFolder/neededIcon"];
It does not work.