【发布时间】:2016-01-31 16:25:38
【问题描述】:
我尝试使用Eureka framework 创建调查表。但是,如何隐藏特定选项选择的部分?
请帮忙!
let fruits = ["Apple", "Banana", "Coconut"]
form +++= SelectableSection<ImageCheckRow<String>, String>() { section in
section.header = HeaderFooterView(title: "What is your favorite fruit ?")
}
for fruit in fruits {
form.last! <<< ImageCheckRow<String>(fruit) { lrow in
lrow.title = fruit
lrow.selectableValue = fruit
}
}
form +++ Section("xxxxxx Question") {
//hide this section when apple is selected
//$0.hidden =
}
form.last! <<< TextAreaRow() {
$0.title = "Enter description here..."
}
【问题讨论】:
标签: ios swift eureka-forms