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 method

    Returns the number of ‘columns’ to display.

    Declaration

    Swift

    public var numberOfComponents: Int { get }
  • numberOfRows(in:) Extension method

    Returns 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 method

    Returns the choice for this row/component. If this is returns nil then this is the skip 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.