1.改变UITableViewCell选中时背景色
cell.selectedBackgroundView = [[[UIView alloc] initWithFrame:cell.frame] autorelease];
cell.selectedBackgroundView.backgroundColor = [UIColor xxxxxx];
2.自定义UITableViewCell选中时背景
cell.selectedBackgroundView = [[[UIImageView alloc] initWithImage:[UIImage imageNamed:@"cellart.png"]] autorelease];
3. 字体颜色
cell.textLabel.highlightedTextColor = [UIColor xxxcolor];
4.清楚grouped-style的背景
UITableViewCell的文档中描述,backgroundView在plain-style的TableView里面是nil,在grouped-style的TableView里面并不是空的,有一个系统的默认值,所以这里置空一下就ok了。
UIView *tempView = [[[UIView alloc] init] autorelease];
[cell setBackgroundView:tempView];
[cell set