是否可以删除分隔表格单元格中的行的黑线? [英] Is it possible to remove the black line which separates the rows in a tablecell?
问题描述
我该怎么做?我希望单元格看起来像一组没有以线条形式分隔的项目?
How can I do this? I want the cells appear like just a collection of items with no separations in the form of lines?
还有如何使单元格的 contentView 变得透明?
And also how can I make the contentView of a cell go transparent?
推荐答案
如果您使用普通样式,则:
删除行:tableView.separatorStyle = UITableViewCellSeparatorStyleNone;
要使单元格的 contentView 变为透明:set backgroundColor = [UIColor clearColor]
在您可以设置的任何内容中(tableView、cell、cell.contentView).
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).
这篇关于是否可以删除分隔表格单元格中的行的黑线?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!