我正在尝试自定义 MultipleSelectorRow 呈现的控制器的背景,但我不能。
<<< MultipleSelectorRow<String>("select") { row in
row.options = values
row.onPresentCallback = { _, to in
let backgroundView = UIView(frame: CGRect(x: 0, y: 0, width: (self.tableView?.bounds.size.width)!, height: (self.tableView?.bounds.size.height)!))
backgroundView.backgroundColor = UIColor.red
to.tableView?.backgroundView = backgroundView
}
}
这不起作用,因为触发回调时 to.tableView 为零。
我认为如果不对 Eureka 库进行修改,就不可能修改控制器
谢谢