Contents

selectRow(_:inComponent:animated:)

Selects a row in a specified component of the picker view.

Declaration

func selectRow(_ row: Int, inComponent component: Int, animated: Bool)

Parameters

  • row:

    A zero-indexed number identifying a row of component.

  • component:

    A zero-indexed number identifying a component of the picker view.

  • animated:

    True to animate the selection by spinning the wheel (component) to the new value; if you specify False, the new selection is shown immediately.

See Also

Selecting rows in the view picker