iOS开发设置cell的背景色为透明

2017-03-12  本文已影响487人  iOS_July

首先说明,貌似需要两步

- (void)viewDidLoad {

self.gcTableView.backgroundColor = [UIColor clearColor];//设置cell的背景色为透明1

}//这里你的tableView名字叫做gcTableView

-----

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{

cell.backgroundColor = [UIColor clearColor];//设置cell背景色为透明2

return cell;

}

---

PS:我只是小白,其他的方法我不知道,希望多交流,多进步

上一篇 下一篇

猜你喜欢

热点阅读