PTChoiceFormDataSource
@protocol PTChoiceFormDataSource <NSObject>
The PTChoiceFormDataSource protocol is adopted by an object that mediates a choice field’s choices for a ChoiceFormViewController object. The data source provides the ChoiceFormViewController with the information it needs display the choices.
-
The choice field’s number of choices
Declaration
Objective-C
- (NSInteger)choiceFormNumberOfChoices: (nonnull PTChoiceFormViewController *)choiceFormViewController;
-
The title of a choice for a given index.
Declaration
Objective-C
- (nonnull NSString *)choiceForm:(nonnull PTChoiceFormViewController *) choiceFormViewController titleOfChoiceAtIndex:(NSUInteger)num;
Parameters
num
the index number of a choice
-
The items that are current selected.
Declaration
Objective-C
- (nonnull NSMutableArray *)choiceFromGetSelectedItemsInActiveListbox: (nonnull PTChoiceFormViewController *)choiceFormViewController;