【发布时间】:2017-04-23 20:45:06
【问题描述】:
在这里问这个问题,因为这还没有在文档中涵盖,他们监控并回答这个标签。 我正在使用Eureka 构建一个多值表单。 这是我的代码:
+++ MultivaluedSection(multivaluedOptions: [.Reorder, .Insert, .Delete],
header: "Options",
footer: "footer") {
$0.addButtonProvider = { section in
return ButtonRow(){
$0.title = "Add New Option"
}
}
$0.multivaluedRowToInsertAt = { index in
print(self.form.values())
return NameRow() {
$0.placeholder = "Your option"
}
}
$0 <<< NameRow() {
$0.placeholder = "Your option"
}
}
现在我想在最后提取 NameRows 中的所有值。可以有任意数量的行(基于用户输入)。这是我尝试过的:
self.form.values()
但它会导致[ : ]。
如何获取所有值?
【问题讨论】:
标签: ios swift eureka-forms