RBMultipleChoiceField Class Reference

Inherits from UIControl
Declared in RBMultipleChoiceField.h

Overview

A multiple choice field.

  delegate

A delegate to receive item selection events.

@property (nonatomic, weak, nullable) id<RBMultipleChoiceFieldDelegate> delegate

Declared In

RBMultipleChoiceField.h

  allowsMultipleSelection

Whether or not multiple selection is allowed. Default = NO.

@property (nonatomic) BOOL allowsMultipleSelection

Declared In

RBMultipleChoiceField.h

  zeroSelectionAllowed

Whether or not the last selected item can be unselected. Default = YES.

@property (nonatomic) BOOL zeroSelectionAllowed

Declared In

RBMultipleChoiceField.h

  options

An array of RBMultipleChoiceFieldOption objects.

@property (nonatomic, nullable) NSArray<RBMultipleChoiceFieldOption*> *options

Declared In

RBMultipleChoiceField.h

  selectedOptionValues

The values of the options that are selected.

@property (nonatomic, readonly, nonnull) NSArray<NSString*> *selectedOptionValues

Declared In

RBMultipleChoiceField.h

  optionSize

The size of the selection buttons. Default = 50, 50.

@property (nonatomic) CGSize optionSize

Declared In

RBMultipleChoiceField.h

  positioner

The overall positioner used. You may theme this positioner. Default values = spacing = 0, dimensions = 1, margin = [0, 0, 0, 0], orientation = RBOrientationVertical, sizing = RBLayoutGridPositionerSizeEvenly.

@property (nonatomic, nonnull, readonly) RBLayoutGridPositioner *positioner

Declared In

RBMultipleChoiceField.h

– setSelected:forOptionValue:

Updates the selection state of the option with the given value.

- (void)setSelected:(BOOL)selected forOptionValue:(nonnull NSString *)value

Parameters

selected

Whether or not to update the option to selected (YES) or unselected (NO).

value

The value of the option to update.

Declared In

RBMultipleChoiceField.h

– unselectAllOptions

Unselect all options.

- (void)unselectAllOptions

Declared In

RBMultipleChoiceField.h