UIView image quality

Discussion in 'iOS Programming' started by flummoxed, Dec 12, 2010.

  1. flummoxed macrumors member

    Nov 27, 2010
    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.
  2. kainjow Moderator emeritus


    Jun 15, 2000
    Make sure your view's frame's origin is aligned to an integer value, e.g. 5, instead of 5.5.

Share This Page