在xcode5.1上写的代码,ios7运行良好,在IOS6模拟器,发现cell全白,折腾半天,发现原来有些区别,供后来遇到这个问题的查看
// cell.backgroundColor = aColor; ios7 //ios6 cell.backgroundView = [[UIView alloc] initWithFrame:cell.frame]; cell.backgroundView.backgroundColor = aColor; cell.selectionStyle = UITableViewCellSelectionStyleDefault; cell.selectedBackgroundView = [[UIView alloc] initWithFrame:cell.frame]; cell.selectedBackgroundView.backgroundColor = color;
ios7上tableviewcell的背景色和ios6的差别
时间: 2024-09-29 16:42:21