How to change the picker rows based on another picker's selection?
问题 I have two pickers - country and region. I need to populate the region picker based on the row selected in the country picker. I have arrays to populate both the pickers. I need some help to change the rows of region picker based on the country picker's selection. Any help would be greatly appreciated. Thanks a lot in advance. 回答1: Ok You have two pickers lets say countryPicker and regionPicker. in the delegate method for UIPickerView add one condition - (NSString *)pickerView:(UIPickerView *