sorry for the silly question, but I’m still in the process of learning Objective-C and iPhone programming.
I’m trying to insert an icon to the left of a UITableView cell. This is from the method (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath :
NSString *imagePath = [[NSBundle mainBundle] pathForResource:@"icon3" ofType:@"png"];
UIImage *icon = [UIImage imageWithContentsOfFile: imagePath];
cell.imageView.contentMode = UIViewContentModeScaleAspectFit;
cell.imageView.image = icon;
My icon (30w x 44h) MUST be as high as the cell, while at the moment it remains a little space (maybe 1 pixel) above it and below. I tried to change the dimensions of the image with no success and I tried to reduce the height of the cell (with no effect) with (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath.
What can I do?
Eventually I should insert a little space on the left too, but this is secondary.
Thanks very much.

[UPDATE] no problem when the UITableView is not “grouped”
You need to change the height of the row for the cell.imageView to be resized.
implement the following method and return the height of your image.
Try also removing the contentMode setting in your cellForRowAtIndexPath method. You can replace all your code with one line as below: