How do I get the best result with images in UIButton and UITableViewCell for both iPhone and iPhone 4 retina? -
Do I only check the screen size and use the resolution twice for iPhone 4, or use the UI button / UITableViewCell to render the image in high resolution?
Thank you
If you set the image in the 'interface builder' To load using Code> + [UIImage imageNamed:] , simply add a double-res image to your project with the "@ 2x" suffix. (For example, myimage.png
will myimage@2x.png
.) The OS will take care of the rest for you.
See more details.
Comments
Post a Comment