Contents

selectedRow(inComponent:)

Returns the index of the selected row in a given component.

Declaration

func selectedRow(inComponent component: Int) -> Int

Parameters

  • component:

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

Return Value

A zero-indexed number identifying the selected row, or -1 if no row is selected.

See Also

Selecting rows in the view picker