如何使用Eureka框架取消选择表单中的选定选项

时间:2016-02-02 17:13:56

标签: ios swift eureka-forms

如果选择“其他”,如何取消选择所有选定的选项?

let fruits = ["Apple", "Banana", "Guava", "Others"]

form +++= SelectableSection<ImageCheckRow<String>, String>("fruits_section", selectionType: SelectionType.MultipleSelection) { 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
    }
}

0 个答案:

没有答案