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