I know there were some discussions about this but i could not find good answer?
My questions are -
I know that -
[UIImage imageNamed:@"blabla"]
will automatically search for the correct image to display (retina or not) on iPhone.
I have a Universal app, and i wish to use the @2x versions on the ipad so i wont have to load an other version of the images (I have hundreds of small images).
is it possible ?
- I saw in some places that people wrote that apple discourage Universal apps as it prefers building separated apps for iPhone and iPad ? is that correct even when i create a different UI for each?
thanks
shani
There is no good built-in way of not duplicating the higher res iphone retina images for the iPad. You could write your own UIImage extension or subclass that uses the user interface idiom macro to determine your platform, then automatically append "@2x" to the image name:
and you'd call it like this: