Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- UILabel* label = (UILabel*)[cell.contentView.subviews objectAtIndex:0];
- label.textColor = [UIColor whiteColor];
- label.backgroundColor = [UIColor darkGrayColor];
- label.opaque = YES;
- - (void) layoutSubviews
- {
- [super layoutSubviews];
- self.textLabel.backgroundColor = [UIColor redColor];
- }
- UILabel* label = [[[UILabel alloc] init] autorelease];
- label.textColor = [UIColor whiteColor];
- label.backgroundColor = [UIColor darkGrayColor];
- label.opaque = YES;
- [cell.contentView addSubview:label];
Add Comment
Please, Sign In to add comment