Вы должны создать свой собственный класс UITableVIewCellSubclass, это не так сложно, как вы думаете.
В основном вам просто нужно добавить 2 UITextField и UIImageView между ними для разделителя.
Я советую вам взглянуть на руководство Apple по программированию TableView, и особенно Подробный взгляд на ячейки Table-View
У вас есть пример кода, очень похожий на то, что вы пытаетесь достичь. Вот идея (непроверенный код):
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
static NSString *CellIdentifier = @"ImageOnRightCell";
UITextField*main, *second;
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell == nil) {
cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier] autorelease];
cell.accessoryType = UITableViewCellAccessoryDetailDisclosureButton;
main = [[[UITextField alloc] initWithFrame:CGRectMake(0.0, 0.0, 220.0, 15.0)] autorelease];
main.autoresizingMask = UIViewAutoresizingFlexibleLeftMargin | UIViewAutoresizingFlexibleHeight;
[cell.contentView addSubview:main];
second = [[[UITextField alloc] initWithFrame:CGRectMake(220.0, 0.0, 220.0, 15.0)] autorelease];
second.autoresizingMask = UIViewAutoresizingFlexibleLeftMargin | UIViewAutoresizingFlexibleHeight;
[cell.contentView addSubview:second];
}
return cell;
}
Надеюсь, это поможет,
Винсент