自定义UITableViewCell的背景样式
1.改变UITableViewCell选中时背景色
[cell setBackgroundView:XXXView];[cell setBackgroundColor:[UIColor XXX]];
总结:UITableViewCell中有一对相对的属性来定义cell平常和选中时的状态,即selectedBackgroundView和backgroundView。你可以对这两个view自定义实现自己想要的效果。
发布时间: 2012-08-17 02:08:34 作者: rapoo
自定义UITableViewCell的背景样式
1.改变UITableViewCell选中时背景色
[cell setBackgroundView:XXXView];[cell setBackgroundColor:[UIColor XXX]];