PickerViewDelegateProtocol is provided when the screen contains a picker view. It includes four optional functions.

  • pickerView:didSelectRow:inComponent: Invoked when the user selects a row in a component.
  • pickerView:rowHeightForComponent: Called when the picker view needs the row height to use for drawing row content.
  • pickerView:titleForRow:forComponent: Called when the picker view needs the title to use for a given row in a given component.
  • pickerView:rowWidthForComponent: Called when the picker view needs the row width to use for drawing row content.
Did this answer your question?