I’m lazy loading images from the web and tossing them into UIImageViews that I create in a Nib. On a retina iPad the images that are scaled down look a lot better than the images at their normal resolution. Even though they look better those images have to be resized which would cause a performance hit, right? Should I make the UIImageViews the size of the UIImages?
Share
Your images should not be resized to the size of the image view, but to
[[UIScreen mainScreen] scale]*imageView.size. On a retina screen, the scale is 2, but it is probably best practice to use the screen scale instead of hard coding.Setting it to this precise size will require the fewest cycles (and thus get the best performance) on render.