What resolution does in-app artwork need to be to make use of the high-resolution iPhone 4 display?
+4
A:
Exactly double the normal resolution images. If you had someImage.png that was 44x320 before, then create [email protected] that is 88x640 for high resolution.
drawnonward
2010-07-18 17:28:22
A little clarification: Make sure you provide the low-res file as well as the hi-res file. All you need to do is add the @2x-suffix to the filename, so iPhone 4 will find it automatically. If no hi-res image is found, the low-res image will be used, just like on an iPhone 3G.
Pumbaa80
2010-07-18 20:41:42
Another addition.. so far it only works with certain image handlers like `UIImage imageNamed` ..I think Apple is working on the others
iWasRobbed
2010-07-19 02:34:06
how do I name my file? [email protected]?
Sheehan Alam
2010-07-19 17:58:08
Yes, `[UIImage imageNamed:]` looks for files with `@2x` just before the extension.
drawnonward
2010-07-19 19:23:32
If I design my apps in IB, can I just select the @2X image and assume the iPhone OS will select the right one for lower models?
Sheehan Alam
2010-07-19 21:04:19
Yes. IB files use `[UIImage imageNamed:]` at runtime.
drawnonward
2010-07-20 03:52:29