views:

58

answers:

1

Hi All

I would like to stop a UIImageView from upscaling as it looks terrible. Unfortunately, I cannot control the UIImage content it is holding, so need to force it not to attempt the upscale on an iPhone 4 retina display.

What's the best advice here?

A: 

Set its frame manually, I think.

Unless you are always using 2x images (for retina display), then you can multiply the width/height with 0.5.

iwat
Can you detect if a retina display is being used?
mootymoots
You can check the scale factor to see if it's a retina display, but [read this first](http://developer.apple.com/iphone/library/documentation/iphone/conceptual/iphoneosprogrammingguide/SupportingResolutionIndependence/SupportingResolutionIndependence.html). Checking for Retina display doesn't sound like the best solution.
progrmr