I am working on an iphone app and targeting iOS 4.0 or later. I am trying to add an image to UIImageView, and image is in jpeg format. This i
You just need to provide the full name of image.
bgImageView.image = [UIImage imageNamed:@"background.jpg"];
don't leave off the extension.
As for the @2x, it is not necessary to call it out anywhere in the code. If you code correctly there is no need to test for a retina display as some here have suggested.