ORKInstructionStepViewController Class Reference
Inherits from | ORKStepViewController : UIViewController |
---|---|
Declared in | ORKInstructionStepViewController.h ORKInstructionStepViewController.m |
Overview
An ORKInstructionStepViewController
object is the view controller for an ORKInstructionStep
object.
In general, you don’t need to instantiate an instruction step view controller directly. Instead, add an instruction step to a task and present the task using a task view controller. When appropriate, the task view controller instantiates the step view controller for the step.
– setCancelButtonItem:
The cancel button item.
- (void)setCancelButtonItem:(UIBarButtonItem *)cancelButtonItem
Discussion
The cancel button item controls the Cancel button displayed in the navigation bar when the step view controller is current. This property lets you control the appearance and target of the Cancel button at runtime.
When the value of the property is nil
, the Cancel button is not displayed; otherwise, the title, target,
and action associated with the Cancel button item are used (other properties of UIBarButtonItem
are ignored).
The cancel button item is updated during view loading and when the value of the step
property
is changed, but is safe to
set in the taskViewController:stepViewControllerWillAppear:
delegate callback.
Subclasses can safely modify this property any time after calling viewWillAppear:
on super.
Declared In
ORKStepViewController.h