hackiftekhar / IQActionSheetPickerView

ActionSheet with UIPickerView
MIT License
205 stars 76 forks source link

reloadComponent doesn`t work #26

Closed Fuhaiyu closed 6 years ago

Fuhaiyu commented 7 years ago

First, I make a picker with 2 arrays like this "[self.picker setTitlesForComponents:@[self.provinces, self.cities]];"

Then, I want reload picker When I change the component and row like this "[self.picker reloadComponent:1];". But it does`t work.

How can I fix it?

hackiftekhar commented 6 years ago

You have to change the cities array each time a province is selected. You can observe change event with actionSheetPickerView:didChangeRow:inComponent: method and can write your own custom logic to handle your case.