I\'m probably missing something obvious here, yet I\'ve been unable to solve the following problem:
I have a project with image resources for both normal and retina
When you are creating images for your app, let's say you're creating an image called example.
You should save the following:
So, it doesn't matter from where you call it, you just call it this way, assuming myImageView is a UIImageView object:
[myImageView setImage:[UIImage imageNamed:@"example"]];
Apple strongly recommends you to use png images. Also, the OS takes care of finding the correct image for the desired device. You don't need to worry about finding the path and all that stuff. +(UIImage*)imageNamed:(NSString*)name looks for the correct image in your resources bundle - and by the way, to return the bundle with your resources just call [NSBundle mainBundle];