Contents

numberOfComponents(in:)

Asks the data source for the number of components in the picker view.

Declaration

func numberOfComponents(in pickerView: UIPickerView) -> Int

Parameters

  • pickerView:

    The picker view requesting the data.

Return Value

The number of components (or “columns”) that the picker view should display.

See Also

Providing counts for the picker view