dillidon / alerts-and-pickers

Advanced usage of UIAlertController and pickers based on it: Telegram, Contacts, Location, PhotoLibrary, Country, Phone Code, Currency, Date...
MIT License
5.65k stars 700 forks source link

Multiple selection in LocalePickerViewController #80

Open miladfuel opened 5 years ago

miladfuel commented 5 years ago

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