Вы можете посчитать количество нарисованных строк и установить изображение в качестве фона для отдельной ячейки.
Что вам нужно сделать, это
cell.backgroundView = [ [[UIImageView alloc] initWithImage:[ [UIImage imageNamed:@"cell_normal.png"] stretchableImageWithLeftCapWidth:0.0 topCapHeight:5.0] ]autorelease];
cell.selectedBackgroundView = [ [[UIImageView alloc] initWithImage:[ [UIImage imageNamed:@"cell_pressed.png"] stretchableImageWithLeftCapWidth:0.0 topCapHeight:5.0] ]autorelease];
используйте этот метод для установки фонового изображения
- (void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath
{
&&&&
if((indexPath.row)==0)
// set image upper corner image here
else if (indexPath.row==1)
//set normal image here
else if (indexPath.row==YourArray)
// also set the lower corner round image in the last low, which can be calculated by comparing indexpath.row to the mutablearray/array
}
Вы также можете применить одно условие перед частью &&&, чтобы применить другое изображение, которое имеет верхний и нижний углы, округлые в случае array.count == 1