我正在使用ios 7 beta检查我的应用程序.我设置了背景颜色UITableView以清除颜色.它仍然显示白色背景.还有其他方法让它变得透明吗?
jfg*_*ang 11
我无法使它工作,但以下工作完美:
-(void)tableView:(UITableView *)tableView
willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath
{
[cell setBackgroundColor:[UIColor clearColor]];
}
Run Code Online (Sandbox Code Playgroud)
Sau*_*lia 10
在iOS 7 chk中设置tableview backgroundColor以清除颜色正常工作
截图查看表格单元格的那些分隔线,而tableview是透明的.
信不信由你,以下声明cellForRowAtIndexPath将使iOS 7符合XIB指定的颜色:
cell.backgroundColor = cell.backgroundColor;
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
23484 次 |
| 最近记录: |