0

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

1 Answer 1

0

You need to implement this in the tableView:willDisplayCell:forTableColumn:row delegate method. You should probably read the TableView Programming Guide before going further.

1
  • 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
    Jun 21, 2010 at 19:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.