开发者

Is it possible to remove the black line which separates the rows in a tablecell?

开发者 https://www.devze.com 2022-12-28 05:13 出处:网络
How can I do this? I want the cells appear like just a collection of items with no 开发者_开发问答separations in the form of lines?

How can I do this? I want the cells appear like just a collection of items with no 开发者_开发问答separations in the form of lines?

And also how can I make the contentView of a cell go transparent?


If you use plain style then:
To remove lines: tableView.separatorStyle = UITableViewCellSeparatorStyleNone;
To make the contentView of a cell go transparent: set backgroundColor = [UIColor clearColor] in anything you can set (tableView, cell, cell.contentView).

0

精彩评论

暂无评论...
验证码 换一张
取 消