ipad项目下 更改tableview 的背景为透明不起作用----------解决办法

来源:互联网 发布:百度人工智能智库 编辑:程序博客网 时间:2024/05/19 20:56
myTableView.backgroundColor = [ UIColor clearColor ];
同样的代码在iphone下可以让table 透明,而在ipad项目中就不行? 

为什么,怎样在ipad中的tableview 使背景透明。


解决办法 :

[myTableView setBackgroundView:nil];
[myTableView setBackgroundView:[[[UIView alloc] init] autorelease]];


原创粉丝点击