Open tbaranes opened 8 years ago
After looking in the code, I'm not sure what would be the best solution to implement this feature in order to respect the current architecture:
selectedRowDidChange:(NSInteger)rowSelected selectedValue:(id)selectedValue
, it could copy the actionSheetPickerDidCancel:(AbstractActionSheetPicker *)actionSheetPicker origin:(id)origin;
implementationshowPickerWithTitle:
with a third block selectedRowDidChange:
selectedIndex
KVO compliantWhat do you think?
@tbaranes Do you mind submitting a pull request with this? I agree with you.
Alright, I will work on this next week. Which final implementation do your prefer?
1-st and 2nd is more common cases. So, let's go with this options! :+1:
Well, finally I didn't get the time to do it. If not done later, I will do it! :)
@tbaranes thank you! no rush :+1:
Hey @skywinder , I need this feature in my app. I need to change 2nd rows value according to 1st row selected Value...
@SnehaDudhat nothing is impossible!
Please have a look how AbstractActionSheetPicker
looks like. it also
change 2nd rows value according to 1st row selected Value
You can also create your picker based on AbstractActionSheetPicker
or ActionSheetCustomPicker
to implement it.
I was looking for a delegate or block to have a "valueDidChange" callback, but can't found one. I suppose that didn't be implemented?