tags:

views:

30

answers:

0

// Set up the cell switch (indexPath.section) { case 0: cell.text = [comedyShows objectAtIndex:indexPath.row]; cell.accessoryType=UITableViewCellAccessoryDetailDisclosureButton;

  break;
 case 1:
  cell.text = [politicalShows objectAtIndex:indexPath.row];
  cell.accessoryType=UITableViewCellAccessoryDetailDisclosureButton;

  NSString *imageName = [NSString stringWithFormat:@"%d.png", indexPath.row, indexPath.section];
  cell.image = [UIImage imageNamed:imageName]; 
  break;
 case 2:
  cell.text = [dramaShows objectAtIndex:indexPath.row];
  cell.accessoryType=UITableViewCellAccessoryDetailDisclosureButton;

  break;
}
return cell;
}