I have UITableViewController. In cellForRowAtIndexPath method I added custom setup for label:
UILabel *lblMainLabel = [[UILabel alloc]initWithFrame:CGRectMake(50, 9, 150, 25)];
lblMainLabel.text = c.Name;
lblMainLabel.font = [UIFont fontWithName:@"Helvetica-Bold" size:20];
lblMainLabel.backgroundColor = [UIColor clearColor];
lblMainLabel.textColor = [UIColor whiteColor];
[cell.contentView addSubview:lblMainLabel];
[lblMainLabel release];
But when I scroll UP or DOWN in table it always add this label on top of previous what I miss?
you should create the UILabel exactly one time, when you create the cell.
Your code should look like this: