Question

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]

Was it helpful?

Solution

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/
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top