ORKHeightAnswerFormat Class Reference
| Inherits from | ORKAnswerFormat : NSObject |
|---|---|
| Declared in | ORKAnswerFormat.h ORKAnswerFormat.m |
Overview
The ORKHeightAnswerFormat class represents the answer format for questions that require users
to enter a height.
A height answer format produces an ORKNumericQuestionResult object. The result is always reported
in the metric system using the cm unit.
Other Methods
– init
Returns an initialized height answer format using the measurement system specified in the current locale.
- (instancetype)initReturn Value
An initialized height answer format.
Declared In
ORKAnswerFormat.h
– initWithMeasurementSystem:
Returns an initialized height answer format using the specified measurement system.
- (instancetype)initWithMeasurementSystem:(ORKMeasurementSystem)measurementSystemParameters
measurementSystem |
The measurement system to use. See |
|---|
Return Value
An initialized height answer format.
Discussion
This method is the designated initializer.
Declared In
ORKAnswerFormat.h
measurementSystem
The measurement system used by the answer format.
@property (readonly) ORKMeasurementSystem measurementSystemDeclared In
ORKAnswerFormat.h
Other Methods
– questionType
The type of question. (read-only)
- (ORKQuestionType)questionTypeDiscussion
You can use this enumerated value in your Objective-C code to switch on a rough approximation of the type of question that is being asked.
Note that answer format subclasses override the getter to return the appropriate question type.
Declared In
ORKAnswerFormat.h