Instance Property

numberOfComponents

Gets the number of components for the picker view.

Declaration

var numberOfComponents: Int { get }

Discussion

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.