ios7上tableviewcell的背景色和ios6的差别
时间:2014-08-20 12:35:32
收藏:0
阅读:339
在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的差别,布布扣,bubuko.com
原文:http://blog.csdn.net/xiaoyuertongxue/article/details/38703139
评论(0)