iOS6 UITableView的背景颜色的修改

转自 http://blog.csdn.net/jinglijun/article/details/8214115

坑爹的apple,这一年sdk 换了n个版本,让我们悲催的程序员也不挺的学习,改一些蛋疼的bug。现在就如:

在iOS6.0 以下 UITableView的背景颜色的修改只要一句话:

 
  
  
  
  
[html] view plain copy
  1. tableView.backgroundColor =[UIColor blueColor];  
 而在iOS6.0 以上 UITableView的背景颜色的修改就不相同了,要改为下面的:
  
  
  
  
[html] view plain copy
  1. tableView.backgroundColor =[UIColor blueColor];  
  2. tableView.backgroundView =nil;  
 真希望坑爹的apple ,不要改以前都ok 的api, 只需要加一些新功能就ok了!要造福我们开发人员啊!

你可能感兴趣的:(iOS6 UITableView的背景颜色的修改)