ORKLocationAnswerFormat Class Reference
Inherits from | ORKAnswerFormat : NSObject |
---|---|
Declared in | ORKAnswerFormat.h ORKAnswerFormat.m |
Overview
The ORKLocationAnswerFormat
class represents the answer format for questions that collect a location response
from the user.
An ORKLocationAnswerFormat
object produces an ORKLocationQuestionResult
object.
Other Methods
useCurrentLocation
Indicates whether or not the user’s current location should be automatically entered the first time they tap on the input field.
@property (nonatomic, assign) BOOL useCurrentLocation
Discussion
By default, this value is YES.
Declared In
ORKAnswerFormat.h
Other Methods
– questionType
The type of question. (read-only)
- (ORKQuestionType)questionType
Discussion
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