To answer you question as you asked it: Yes you can just use the highest resolution image only and have it fitted to the size that each device currently needs. You can to that by just initializing the UIImage
with the named resouce, as you suggest, and assign that to an UIImageView
with an appropriate frame in each device type.
Would I advice doing so? No!
Why?
- The naming conventions (~ipad and @2x) make it easy for you as programmer to provide perfectly fitted artworks for each resolution.
- You or your designer respectively are in full control over how the artworks will be displayed
- It saves memory and cpu and therefore even a bit of battery power.
- When it comes to very detailed or small graphics that don't rezise well, then you can consider creating slightly different ones for the lower resolutions that suit better for their current resolution
So if you just want to downsize a high-res image then download something powerful but cheap like gimp and reszise it once yourself (instead of having thouthands of mobile phones do it again and again), save them with poper names and include them in the boundle.