选择自定义单元格后,如何更改其背景?
谢谢,尼尔斯
最佳答案
if (cell == nil) {
cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:CellIdentifier] autorelease];
UIView *v = [[[UIView alloc] init] autorelease];
v.backgroundColor = [UIColor blueColor];
cell.selectedBackgroundView = v;
用这个
关于iphone - 突出显示单元格时更改为自定义背景,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7107631/