nicklockwood / CountryPicker

CountryPicker is a custom UIPickerView subclass that provides an iOS control allowing a user to select a country from a list. It can optionally display a flag next to each country name, and the library includes a set of 249 high-quality, public domain flag images from FAMFAMFAM (http://www.famfamfam.com/lab/icons/flags/) that have been painstakingly re-named by country code to work with the library.
http://charcoaldesign.co.uk/source/cocoa#countrypicker
Other
741 stars 153 forks source link

reloadAllComponents not working #37

Closed CarlinhaCamargo closed 8 years ago

CarlinhaCamargo commented 8 years ago

I'm trying to filter the country list modifying the countryNamesByCode, as mentioned by the documentation. But I need to refresh the elements, with a new _countryNamesByCode (which i've modified). When I use the pickerView method reloadAllComponents, the picker don't suffer any modification. But if I try to do the same logic with the countryCodes method and static variable, i'm able to modify the list but the flags aren't modified...

kind of need some help here... thanks