当前位置:首页 > 操作系统 > Ios

iOS tableview 选中Cell后的背景颜色和文字颜色

做下记录,备忘

改文字颜色其实是UILabel的属性,改背景颜色是cell的属性,都和tableview无关。

 cell.textLabel.textColor = BAR_COLOR;
 cell.textLabel.highlightedTextColor = [UIColor whiteColor];

    
    
 UIView *selectedView = [[UIView alloc] init];
 selectedView.backgroundColor = BAR_COLOR;
 cell.selectedBackgroundView = selectedView;

原文:http://www.cnblogs.com/breezemist/p/3529820.html


【说明】本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:254677821)!