Создайте пользовательский UITableViewCell.
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell == nil) {
cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleValue1 reuseIdentifier:CellIdentifier] autorelease];
}
//Initialize String for Displaying
//NSString *str =
UILabel *lbl;
if ([cell.contentView.subviews count] == 0) {
//Label alloc and init with frame
//lbl = [[UILabel] alloc] initWithFrame:CGRectMake(x,y,width,height)];
//Cofigure Label (text, font, etc.)
lbl.text = str;
//lbl.font = font;
//Add subview
[cell.contentView addSubview:lbl];
//Release
[lbl release];
}
else {
lbl = [cell.contentView.subviews objectAtIndex:0];
lbl.text = str; //Do only set variable value.
}
return cell;
}