【问题标题】:Is it possible to remove the black line which separates the rows in a tablecell?是否可以删除分隔表格单元格中行的黑线?
【发布时间】:2010-04-28 07:16:28
【问题描述】:

我该怎么做?我希望单元格看起来像一个没有分隔线形式的项目集合?

还有如何让单元格的 contentView 变得透明?

【问题讨论】:

标签: iphone uitableview


【解决方案1】:

如果你使用朴素的风格,那么:
删除行:tableView.separatorStyle = UITableViewCellSeparatorStyleNone;
要使单元格的 contentView 变得透明:set backgroundColor = [UIColor clearColor] 在您可以设置的任何内容(tableView、cell、cell.contentView)中。

【讨论】:

    猜你喜欢
    • 2018-03-10
    • 1970-01-01
    • 1970-01-01
    • 2021-06-02
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-12-03
    • 1970-01-01
    相关资源
    最近更新 更多