RSDMultipleComponentChoiceOptions
public protocol RSDMultipleComponentChoiceOptions : 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]]
-
numberOfComponentsExtension methodReturns the number of ‘columns’ to display.
Declaration
Swift
public var numberOfComponents: Int -
numberOfRows(in:)Extension methodReturns the # of rows in each component.
Declaration
Swift
public func numberOfRows(in component: Int) -> IntParameters
componentThe 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
nilthen this is theskip
choice.Declaration
Swift
public func choice(forRow row: Int, forComponent component: Int) -> RSDChoice?Parameters
rowThe row for the selected component.
componentThe component (or column) of the picker.
View on GitHub
RSDMultipleComponentChoiceOptions Protocol Reference