dillidon / alerts-and-pickers

Advanced usage of UIAlertController and pickers based on it: Telegram, Contacts, Location, PhotoLibrary, Country, Phone Code, Currency, Date...

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Multiple selection in LocalePickerViewController

miladfuel opened this issue · comments

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