раскрасьте пользовательский интерфейс с теми же границами, что и ячейка, и добавьте его в качестве подпредставления
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
static NSString *CellIdentifier = @"Cell";
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell == nil) {
cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier] autorelease];
cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
}
UIView *colorView = [cell viewWithTag:200];
if(!colorView){
colorView = [[[UIView alloc] initWithFrame:CGRectMake(0, 0, tableView.frame.size.width, 44)] autorelease];
colorView.backgroundColor = [UIColor redColor];
colorView.tag = 200;
[cell addSubview:colorView];
}
return cell;
}
затем добавьте все ваши подпредставления в этот цветной вид.