私はこのコードを持っています:
form +++= SelectableSection<ImageCheckRow<String>, String>("branch_section", selectionType: .MultipleSelection) { section in
section.header = HeaderFooterView(title: "Branches")
}
for branch in sharedBranch.branchList {
form.last! <<< ImageCheckRow<String>(branch.name){ row in
row.title = branch.name
row.baseValue = branch.id
row.selectableValue = branch.name
row.value = nil
}
}
しかし、私は得ることができませんselectedRows
、私は試しました:
let branch_section = self.form.sectionByTag("branch_section") as? SelectableSection<ImageCheckRow<String>, String>
print(branch_section)
print(branch_section.selectedRows())
両方のプリントnil