RSDMultipleComponentPickerDataSource
public protocol RSDMultipleComponentPickerDataSource : RSDChoicePickerDataSource
RSDMultipleComponentOptions
is a data source protocol that can be used to set up a picker.
-
A list of choices for input fields that make up the multiple component option set.
Declaration
Swift
var choices: [[RSDChoice]] { get }
-
numberOfComponents
Extension methodReturns the number of ‘columns’ to display.
Declaration
Swift
public var numberOfComponents: Int { get }
-
numberOfRows(in:)
Extension methodReturns the # of rows in each component.
Declaration
Swift
public func numberOfRows(in component: Int) -> Int
Parameters
component
The component (or column) of the picker.
Return Value
The number of rows in the given component.
-
choice(forRow:forComponent:)
Extension methodReturns the choice for this row/component. If this is returns
nil
then this is theskip
choice.Declaration
Swift
public func choice(forRow row: Int, forComponent component: Int) -> RSDChoice?
Parameters
row
The row for the selected component.
component
The component (or column) of the picker.