Hello,
I want to use locale picker (for country) with multiple selection .
I add this code to viewDidLoad() function:
tableView.allowsMultipleSelection = true
tableView.allowsMultipleSelectionDuringEditing = true
1- Now i can multiple selection( country) but i cant use selected data to add in new tableView. The other word I see just one selected in info.country in this line:
let alert1 = UIAlertController(style: .actionSheet);
alert1.addLocalePicker(type: .country) { info in
print(info.country)
}
2- I want save all data selected after tap select button(alert action). after i open again localePicker i Want to see checkMarks that i selected before!
Hello, I want to use locale picker (for country) with multiple selection . I add this code to viewDidLoad() function: tableView.allowsMultipleSelection = true tableView.allowsMultipleSelectionDuringEditing = true 1- Now i can multiple selection( country) but i cant use selected data to add in new tableView. The other word I see just one selected in info.country in this line: let alert1 = UIAlertController(style: .actionSheet); alert1.addLocalePicker(type: .country) { info in print(info.country) }
2- I want save all data selected after tap select button(alert action). after i open again localePicker i Want to see checkMarks that i selected before!
Thanks