转自 http://blog.youkuaiyun.com/jinglijun/article/details/8214115
坑爹的apple,这一年sdk 换了n个版本,让我们悲催的程序员也不挺的学习,改一些蛋疼的bug。现在就如:
在iOS6.0 以下 UITableView的背景颜色的修改只要一句话:
而在iOS6.0 以上 UITableView的背景颜色的修改就不相同了,要改为下面的:
- tableView.backgroundColor =[UIColor blueColor];
- tableView.backgroundColor =[UIColor blueColor];
- tableView.backgroundView =nil;
真希望坑爹的apple ,不要改以前都ok 的api, 只需要加一些新功能就ok了!要造福我们开发人员啊!
iOS6+ UITableView背景色修改
本文介绍了在iOS6及更高版本中修改UITableView背景颜色的方法。由于苹果更改了API,原先仅设置tableView.backgroundColor的方法不再适用。现在需要同时将tableView.backgroundColor设为所需颜色,并将tableView.backgroundView设置为nil。
136

被折叠的 条评论
为什么被折叠?



