1

如何更改 Eureka 表单单元格的边框颜色?我设法使密码字段的背景颜色透明,但想对边框做同样的事情。

这是我的单元格代码:

<<< ButtonRow() { (row: ButtonRow) -> Void in
        row.title = "Forgot your password?"
    }.onCellSelection({ (cell, row) in
        self.performSegueWithIdentifier("resetPassword", sender: nil)
    }).cellSetup { cell, row in
        cell.backgroundColor = UIColor(white: 1, alpha: 0.0)

        // How can I get this to work?
        cell.contentView.layer.borderColor = UIColor(white: 1, alpha: 0.0).CGColor
}
4

1 回答 1

1

您正在寻找的是我认为的 tableView 分隔符样式。

self.tableView.separatorStyle = .none
于 2018-05-22T09:12:50.703 回答