ORKTaskResultSource Protocol Reference

Conforms to NSObject
Declared in ORKResult.h

ORKTaskResultSource is the protocol for [ORKTaskViewController defaultResultSource].

– stepResultForStepIdentifier: required method

Returns a step result for the specified step identifier, if one exists.

- (nullable ORKStepResult *)stepResultForStepIdentifier:(NSString *)stepIdentifier



The identifier for which to search.

Return Value

The result for the specified step, or nil for none.


When it’s about to present a step, the task view controller needs to look up a suitable default answer. The answer can be used to prepopulate a survey with the results obtained on a previous run of the same task, by passing an ORKTaskResult object (which itself implements this protocol).

Declared In