UITableViewCell Nib选中自定义样式

- (void)awakeFromNib
{
    UIView *bgColorView = [[UIView alloc] init];
    bgColorView.backgroundColor = [UIColor redColor];
    [self setSelectedBackgroundView:bgColorView];
   
    [self.titleLabel setHighlightedTextColor:[UIColor whiteColor]];
}

猜你喜欢

转载自lizhuang.iteye.com/blog/2139333