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

相關文章
相關標籤/搜索