- (UITableViewCell *) getCellContentView: (NSString *) cellIdentifier {
статическая NSString * CellIdentifier = @ "Cell";
UILabel * l1;
UITableViewCell * cell = [[[UITableViewCell alloc] initWithFrame: CGRectMake (0, 0, 300, 60) reuseIdentifier: CellIdentifier] autorelease];
l1=[[UILabel alloc] initWithFrame:CGRectMake(100.0, 15.0, 400.0, 40.0)];
l1.tag=1;
l1.font=[UIFont fontWithName:@"AppleGothic" size:17];
// l1.font=[UIFont boldSystemFontOfSize:20];
l1.textColor=[UIColor blackColor];
l1.backgroundColor=[UIColor clearColor];
l1.lineBreakMode =UILineBreakModeWordWrap;
l1.numberOfLines=3;
[cell.contentView addSubview:l1];
[l1 release];
l1=[[UILabel alloc]initWithFrame:CGRectMake(110.0, 35.0, 650.0, 45.0)];
l1.tag =2;
l1.font=[UIFont fontWithName:@"Futura-MediumItalic" size:13];
l1.textColor=[UIColor grayColor];
l1.numberOfLines=3;
l1.backgroundColor=[UIColor clearColor];
l1.lineBreakMode =UILineBreakModeWordWrap;
[cell.contentView addSubview:l1];
[l1 release];
return cell;
}
, а затем вызвать метод cellforrowatindexpath
UITableViewCell * cell = [tableView dequeueReusableCellWithIdentifier: CellIdentifier];
cell=[self getCellContentView:CellIdentifier];