ORKHeightAnswerFormat Class Reference

Inherits from ORKAnswerFormat : NSObject
Declared in ORKAnswerFormat.h

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.

– init

Returns an initialized height answer format using the measurement system specified in the current locale.

- (instancetype)init

Return 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)measurementSystem

Parameters

measurementSystem

The measurement system to use. See ORKMeasurementSystem for the accepted values.

Return Value

An initialized height answer format.

Discussion

This method is the designated initializer.

Declared In

ORKAnswerFormat.h

  measurementSystem

Indicates the measurement system used by the answer format.

@property (readonly) ORKMeasurementSystem measurementSystem

Declared In

ORKAnswerFormat.h