What is the best way of loading images from the application main bundle. I am using
[UIImage imageNamed: \"image.png\"];
But I have heard that
For finding a single resource file using NSBundle
NSBundle* myBundle = [NSBundle mainBundle];
NSString* myImage = [myBundle pathForResource:@"Seagull" ofType:@"jpg"];
and for finding multiple resources:
NSBundle* myBundle = [NSBundle mainBundle];
NSArray* myImages = [myBundle pathsForResourcesOfType:@"jpg"
inDirectory:nil];