ios - Swift:如何更改 Eureka 表单单元格的边框颜色?

标签 ios swift eureka-forms

如何更改 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
}

最佳答案

你要找的是我认为的tableView分隔符样式。

self.tableView.separatorStyle = .none

关于ios - Swift:如何更改 Eureka 表单单元格的边框颜色?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37749129/

相关文章:

ios - 构建操作失败,未为React Native Xcode项目指定任何错误

ios - 我正在尝试在 Swift 中创建两点之间的路线,但我的 MKDirectionsResponse 似乎出现错误

objective-c - 重新加载 subview (UICollectionview)

ios - 如何清除内联行中的值,例如 DateInlineRow?

javascript - PhoneGap : Unable to change volume of html5 Audio object in ios

ios - `UINavigationBar` 弯曲扩展?

在 Core Data 可转换字符串数组上返回匹配项的 Swift 谓词

ios - 快速放大此处 map 中的用户位置

swift - 如何获取 Eureka 自定义单元格的 indexpath.row ,按钮标签

ios - 如何以编程方式向 Eureka 中的表单添加顶部导航?