ORKDateQuestionResult Class Reference
| Inherits from | ORKQuestionResult : ORKResult : NSObject |
|---|---|
| Declared in | ORKQuestionResult.h ORKQuestionResult.m |
Overview
The ORKDateQuestionResult class represents the result of a question or form item that asks for a date (ORKDateAnswerFormat).
The calendar and time zone are recorded in addition to the answer itself,
to give the answer context. Usually, this data corresponds to the current calendar
and time zone at the time of the activity, but it can be overridden by setting
these properties explicitly in the ORKDateAnswerFormat object.
dateAnswer
The date that the user entered, or nil if the user skipped the question.
@property (nonatomic, copy, nullable) NSDate *dateAnswerDeclared In
ORKQuestionResult.h
calendar
The calendar used when selecting date and time.
@property (nonatomic, copy, nullable) NSCalendar *calendarDiscussion
If the calendar in the ORKDateAnswerFormat object is nil, this calendar is the system
calendar at the time of data entry.
Declared In
ORKQuestionResult.h
timeZone
The time zone that was current when selecting the date and time.
@property (nonatomic, copy, nullable) NSTimeZone *timeZoneDeclared In
ORKQuestionResult.h