I'm adding a UILabel to each cell in my table view. This presents no problem innitially. When I round the corners of the UILabel using layer.cornerRadius scrolling the table view grinds to a halt.
UILabel *label1 = [[UILabel alloc] initWithFrame:CGRectMake(cell.bounds.origin.x+10 ,5, 30, 30)];
label1.backgroundColor = ([[managedObject valueForKey:@"color"] hasPrefix:@"FFFFFF"]) ? [UIColor blackColor] : color;
label1.layer.cornerRadius = 10.0f;
[cell addSubview:label1];