ORKBooleanAnswerFormat Class Reference

Inherits from ORKAnswerFormat : NSObject
Declared in ORKAnswerFormat.h

The ORKBooleanAnswerFormat class behaves the same as the ORKTextChoiceAnswerFormat class, except that it is preconfigured to use only Yes and No answers.

The Boolean answer format produces an ORKBooleanQuestionResult object.

– initWithYesString:noString:

Returns an initialized Boolean answer format using the specified strings for Yes and No answers.

- (instancetype)initWithYesString:(NSString *)yes noString:(NSString *)no

Parameters

yes

A string that describes the Yes answer.

no

A string that describes the No answer.

Return Value

An initialized Boolean answer format.

Declared In

ORKAnswerFormat.h

  yes

The string to describe the Yes answer. (read-only)

@property (copy, readonly) NSString *yes

Declared In

ORKAnswerFormat.h

  no

The string to describe the No answer. (read-only)

@property (copy, readonly) NSString *no

Declared In

ORKAnswerFormat.h