ORKChoiceQuestionResult Class Reference

Inherits from ORKQuestionResult : ORKResult : NSObject
Declared in ORKQuestionResult.h

The ORKChoiceQuestionResult class represents the single or multiple choice answers from a choice-based answer format.

For example, an ORKTextChoiceAnswerFormat or an ORKImageChoiceAnswerFormat format produces an ORKChoiceQuestionResult object.

A choice question result is typically generated by the framework as the task proceeds. When the task completes, it may be appropriate to serialize it for transmission to a server, or to immediately perform analysis on it.

  choiceAnswers

An array of selected values, from the value property of an ORKTextChoice or ORKImageChoice object. In the case of a single choice, the array has exactly one entry.

@property (nonatomic, copy, nullable) NSArray *choiceAnswers

Discussion

If the user skipped the question, the value of the corresponding array member is nil.

Declared In

ORKQuestionResult.h