Instance Property


Gets the number of components for the picker view.


var numberOfComponents: Int { get }


A UIPickerView object fetches the value of this property from the data source and and caches it. The default value is zero.

See Also

Getting the Dimensions of the View Picker

func numberOfRows(inComponent: Int) -> Int

Returns the number of rows for a component.

func rowSize(forComponent: Int) -> CGSize

Returns the size of a row for a component.