Let's say I have three images in a bundle or asset catalog:
- Default~iphone.png
- Default@2x~iphone.png
- [email protected]
On iOS 4 and later, the UIImage constructor can take the image name as follows:
[UIImage imageNamed:@"Default"];
When I am on a 3.5 inch retina display (iphone) it automatically picks image (2). If on a non-retina display it picks (1). This is great.
I named image 3 as specified for the 4 inch retina (iPhone 5) launch image. Is there a way to name image (3), so that when I am running on a 4 inch retina display, it is returned with the same UIImage constructor?
Perhaps this is not implemented yet, or I expect too much from the convenience... I am just trying to avoid any conditional logic in my code to pick the image based on the screen dimensions.