Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

flummoxed

macrumors member
Original poster
Nov 27, 2010
38
0
Does anyone know why an imageview created in Interface Builder displays in sharper image quality than the same imageview created programmatically quality?

I have created the same size imageViews with the same image in 2 different methods and they don't render the same in the running application. The imageview created programmatically is fuzzy.

I tried playing with the view.contentMode property set to "centered" (not scaled) just as in IB but it does not have any affect. Something is being done differently behind the scenes that I am not aware of.
 
Make sure your view's frame's origin is aligned to an integer value, e.g. 5, instead of 5.5.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.