Does UIPickerView's selectRow:inComponent:animated: call pickerView:didSelectRow:inComponent:?
Otherwise, can I just call it myself?
Thanks
Does UIPickerView's selectRow:inComponent:animated: call pickerView:didSelectRow:inComponent:?
Otherwise, can I just call it myself?
Thanks
It does not call delegate method with swift too, but you can do it manually also. Decision for swift 3 and swift 4:
self.pickerView.datasource = self
self.pickerView.delegate = self
self.pickerView.selectRow(0, inComponent: 0, animated: false)
self.pickerView.delegate?.pickerView?(self.pickerView, didSelectRow: 0, inComponent: 0)