VAA*_*AAA 2 swift2 eureka-forms
我是 Eureka 表单框架(Swift 2)的新手,我尝试设置单元格的背景颜色并添加一个左图标,如下图所示。
我的实际代码是:
<<< ButtonRow() { (row: ButtonRow) -> Void in
row.title = "Access"
} .onCellSelection({ (cell, row) in
self.showAlert()
})
Run Code Online (Sandbox Code Playgroud)
有什么线索吗?
这应该适合你:
.cellSetup { cell, row in
cell.backgroundColor = UIColor(red:0.00, green:0.00, blue:0.00, alpha: 1.0)
cell.imageView?.image = UIImage(named: "name_of_image_in_assets")
}
Run Code Online (Sandbox Code Playgroud)
将“0.00”替换为您想要的 UIColor RGB 设置。
| 归档时间: |
|
| 查看次数: |
1548 次 |
| 最近记录: |