Contents

pickerView(_:numberOfRowsInComponent:)

Asks the data source for the number of rows for a specified component.

Declaration

func pickerView(_ pickerView: UIPickerView, numberOfRowsInComponent component: Int) -> Int

Parameters

  • pickerView:

    The picker view requesting the data.

  • component:

    A zero-indexed number identifying a component of pickerView. Components are numbered left-to-right.

Return Value

The number of rows for the component.

See Also

Providing counts for the picker view