iOS 6/7 tabbleview 的背景颜色

iOS 7 的背景设置透明:spa


-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath3d

{it

    cell.backgroundColor = [UIColorclearColor];//iOS 7以后就是这样实现tabbleview的背景色为透明table

    

   return cell;im

}margin


iOS 6 的背景设置透明:
top

backgroundView 属性不为nil,全部设置backgroundColor 没有意义
tab

myTableView.backgroundView = nil;view

myTableView.backgroundColor = [UIColor clearColor];vi

相关文章
相关标签/搜索