定制UITableView 中UITableViewCell点击颜色:
self.selectionStyle = UITableViewCellSelectionStyleDefault;
UIView *selectedBackgroundView = [[UIView alloc] init];
selectedBackgroundView.backgroundColor = [UIColor colorWithHexString:@"#efefef"];
self.selectedBackgroundView = selectedBackgroundView;
特别注意此时selectionStyle的属性不能设置为:self.selectionStyle = UITableViewCellSeparatorStyleNone
本文出自 “原石诞生璞玉” 博客,请务必保留此出处http://ymbian.blog.51cto.com/725073/1682246
custom UITableViewCell selected Color
原文地址:http://ymbian.blog.51cto.com/725073/1682246