Users Pricing

forum

home / developersection / forums / how to customize image view of uitableviewcell in xcode-4.6?

How to customize image view of UITableViewCell in Xcode-4.6?

Anonymous User 1978 02 Feb 2016

My problem is in the imageView of UITableViewCell. I want to fit our images into the imageView of table view cell with same height/width and a text in the context view.
I was trying this code:

cell.imageView.image = ifg.groupImage;
cell.textLabel.text = ifg.groupName;

above code running perfectly but if the images are different width/size then it also same reflection displays in cell imageView, so that my question is how can display images with same width/height?
I am search it every where but can't find any easiest solution. Please help me.


I am a content writter !


1 Answers

Tarun Kumar 03 Feb 2016 Accepted Answer