ORKCountdownStepViewController Class Reference

Inherits from ORKActiveStepViewController : ORKStepViewController : UIViewController
Declared in ORKCountdownStepViewController.h
ORKCountdownStepViewController.m

Overview

The ORKCountdownStepViewController class represents the step view controller that corresponds to an ORKCountdownStep.

It is not usually necessary to instantiate this view controller directly. Instead, add a countdown step to a task, and present the task in a task view controller.

– initWithStep:

Returns a new step view controller for the specified step.

- (instancetype)initWithStep:(ORKStep *)step

Parameters

step

The step to be presented.

Return Value

A newly initialized step view controller.

Declared In

ORKStepViewController.h

– setStep:

The step presented by the step view controller.

- (void)setStep:(ORKStep *)step

Discussion

If you use a storyboard to initialize the step view controller, initWithStep: isn’t called, so you need to set the step property directly before the step view controller is presented.

Setting the value of step after the controller has been presented is an error that generates an exception. Modifying the value of step after the controller has been presented is an error that has undefined results.

Subclasses that override the setter of this property must call super.

Declared In

ORKStepViewController.h