改变cell在点击时的颜色

RedRain的:http://www.jianshu.com/users/29e03e6ff407/latest_articles

http://no001.blog.51cto.com/1142339/646408/
cell.selectionStyle 是默认即可

// 设置cell点击后的选中时的背景颜色
self.contentView.backgroundColor = [UIColor clearColor];
UIView *aView = [[UIView alloc]initWithFrame:self.contentView.frame];
aView.backgroundColor = [UIColor colorWithRed:0.95fgreen:0.95f blue:0.95f alpha:1.00f];
self.selectedBackgroundView = aView;   //设置选中后cell的背景颜色

你可能感兴趣的:(改变cell在点击时的颜色)