Geek
Geek

Reputation: 8320

Image not displayed with clarity

I am using auto layout and working with custom UITableViewCell. Inside this cell, I want tp display an image. Issue is that image is not displayed with clarity.

Actual image is this :

enter image description here

But in app, it is displayed as below :

enter image description here

What can be the reason? How to solve it?

![enter image description here][3]

Upvotes: 0

Views: 134

Answers (1)

cohen72
cohen72

Reputation: 3000

To maintain corner radius for changes in image dimensions, use the resizableImageWithCapInsets method on UIImage.

Good tutorials:

  1. http://useyourloaf.com/blog/2012/07/05/customizing-appearance-with-resizable-images.html
  2. http://ios.biomsoft.com/2011/12/20/ios-5-uiimage-and-resizableimagewithcapinsets/

Upvotes: 1

Related Questions