RSDChoicePickerTableItemGroup
open class RSDChoicePickerTableItemGroup : RSDInputFieldTableItemGroup
RSDChoicePickerTableItemGroup subclasses RSDInputFieldTableItemGroup to implement a single or multiple choice
question where the choices are presented as a list.
-
Does the item group allow for multiple choices or is it single selection?
Declaration
Swift
public let singleSelection: Bool -
Default initializer.
Declaration
Swift
public init(beginningRowIndex: Int, inputField: RSDInputField, uiHint: RSDFormUIHint, choicePicker: RSDChoicePickerDataSource, answerType: RSDAnswerResultType? = nil)Parameters
beginningRowIndexThe first row of the item group.
inputFieldThe input field associated with this item group.
uiHintThe UI hint.
choicePickerThe choice picker data source.
answerTypeThe answer type.
-
Declaration
Swift
override open func setAnswer(from result: RSDResult) throws -
Select or de-select an item (answer) at a specific indexPath. This is used for text choice and boolean answers.
Declaration
Swift
open func select(_ item: RSDChoiceTableItem, indexPath: IndexPath) throwsParameters
selectedA
Boolindicating if the item should be selected.indexPathThe IndexPath of the item.
View on GitHub
RSDChoicePickerTableItemGroup Class Reference