I tried to add images with the size of 32 by 32...it worked but it shows me only the first image for all the objects on the table view... In other words only image for all the other objects
A:
You need to implement this in the tableView:willDisplayCell:forTableColumn:row
delegate method. You should probably read the TableView Programming Guide before going further.
cdespinosa
2010-06-21 19:32:49
I use the following line of code:UIImage * image; switch (indexPath.section) { case 0: image = [UIImage imageNamed:@"Acco.png"]; break; case 1: image = [UIImage imageNamed:@"Badm.png"]; break; case 2: image = [UIImage imageNamed:@"Book.png"]; break; case 3: image = [UIImage imageNamed:@"Cafe.png"]; break; } cell.imageView.image = image;
rifkeey
2010-06-21 19:39:04