PickerViewDatasourceProtocol is provided when adding a picker view in your screen. It has two required functions.

  • numberOfComponentsInPickerView: Called when the picker view needs the number of components.
  • pickerView:numberOfRowsInComponent: Called when the picker view needs the number of rows for a specified component.
Did this answer your question?