Ios 如何使用Eureka framework在表单中取消选择所选选项

Ios 如何使用Eureka framework在表单中取消选择所选选项,ios,swift,eureka-forms,Ios,Swift,Eureka Forms,如果选择了“其他”,如何取消选择所有选定选项 let fruits = ["Apple", "Banana", "Guava", "Others"] form +++= SelectableSection<ImageCheckRow<String>, String>("fruits_section", selectionType: SelectionType.MultipleSelection) { section in section.header = HeaderF

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

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
    }
}
let fruits=[“苹果”、“香蕉”、“番石榴”、“其他”]
form++=SelectableSection(“fruits_section”,selectionType:selectionType.MultipleSelection){section in
section.header=HeaderFooterView(标题:“你最喜欢的水果是什么?”)
}
水果中的水果{
最后!