Does UIPickerView's selectRow:inComponent:animated:
call pickerView:didSelectRow:inComponent:
?
Otherwise, can I just call it myself?
Thanks
You do have to call it manually and you do it though the delegate.
// In this example the UIPickerView object is in a property
...
self.pickerView.datasource = self;
self.pickerView.delegate = self;
// Selects the row in the specified component
[self.pickerView selectRow:0 inComponent:0 animated:NO];
// Manually calls pickerView:didSelectRow:inComponent:
[self pickerView:self.pickerView didSelectRow:0 inComponent:0];
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With