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
NSString *filePath = [[NSBundle mainBundle] pathForResource:@"myimage" ofType:@"png"]; UIImage *image = [UIImage imageWithContentsOfFile:filePath];