custom UITableViewCell selected Color
定制UITableView 中UITableViewCell点击颜色:
self.selectionStyle = UITableViewCellSelectionStyleDefault;
UIView *selectedBackgroundView = [[UIView alloc] init];
selectedBackgroundView.backgroundColor = [UIColor colorWithHexString:@"#efefef"];
self.selectedBackgroundView = selectedBackgroundView;
特别注意此时selectionStyle的属性不能设置为:self.selectionStyle =UITableViewCellSeparatorStyleNone
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。