ORKTimeOfDayAnswerFormat Class Reference

Inherits from ORKAnswerFormat : NSObject
Declared in ORKAnswerFormat.h

The ORKTimeOfDayAnswerFormat class represents the answer format for questions that require users to enter a time of day.

A time of day answer format produces an ORKTimeOfDayQuestionResult object.

– initWithDefaultComponents:

Returns an initialized time of day answer format using the specified default value.

- (instancetype)initWithDefaultComponents:(nullable NSDateComponents *)defaultComponents

Parameters

defaultComponents

The default value with which to configure the picker.

Return Value

An initialized time of day answer format.

Discussion

This method is the designated initializer.

Declared In

ORKAnswerFormat.h

  defaultComponents

The default time of day to display in the picker. (read-only)

@property (nonatomic, copy, readonly, nullable) NSDateComponents *defaultComponents

Discussion

Note that both the hour and minute components are observed. If the value of this property is nil, the picker displays the current time of day.

Declared In

ORKAnswerFormat.h