【发布时间】:2017-01-02 10:36:47
【问题描述】:
如何删除 Eureka 表单中单行的分隔线?
我想删除表格视图中的最后一行,即描述行下方的那一行。当我用常规的 tableview 寻找这个问题的解决方案时,最流行的解决方案是通过设置一个大的分隔符插入来将特定单元格的分隔线推出屏幕。像这样:
form.last! <<< TextAreaRow("description row") {
$0.placeholder = "Description of the issue"
$0.textAreaHeight = .dynamic(initialTextViewHeight: 44)
}.cellSetup{ cell, row in
cell.separatorInset = UIEdgeInsets(top: 0, left: 2000, bottom: 0, right: 0)
}.onChange{ [weak self] in
self?.issueMessage = $0.value ?? ""
}
我在viewDidLoad 上调用它,但它似乎没有任何效果。我是 Eureka 的新手。
【问题讨论】:
-
你有没有试过设置单元格的分隔符样式?? self.tableView.separatorStyle = UITableViewCellSeparatorStyleNone
-
是的。它是 tableview 上的一个属性。它删除了所有单元格上的分隔线,这不是我想要的。
-
你找到解决办法了吗?
标签: ios swift uitableview eureka-forms