ORKTowerOfHanoiStep Class Reference
Inherits from | ORKActiveStep : ORKStep : NSObject |
---|---|
Declared in | ORKTowerOfHanoiStep.h ORKTowerOfHanoiStep.m |
Other Methods
numberOfDisks
The number of disks in the puzzle.
@property (nonatomic, assign) NSUInteger numberOfDisks
Discussion
It is not recommended that you use a large number of disks. As this provides a poor user experience. The default value of this property is 3.
Declared In
ORKTowerOfHanoiStep.h
Other Methods
– initWithIdentifier:
- (instancetype)initWithIdentifier:(NSString *)identifier
Declared In
ORKStep.h
– validateParameters
Checks the parameters of the step and throws exceptions on invalid parameters.
- (void)validateParameters
Discussion
This method is called when there is a need to validate the step’s parameters, which is typically
the case when adding a step to an ORKStepViewController
object, and when presenting the
step view controller.
Subclasses should override this method to provide validation of their additional properties, and must call super.
Declared In
ORKStep.h
– shouldContinueOnFinish
A Boolean value indicating whether to transition automatically when the step finishes.
- (BOOL)shouldContinueOnFinish
Discussion
When the value of this property is YES
, the active step view controller automatically performs the
continue action when the [ORKActiveStepViewController finish]
method
is called.
The default value of this property is NO
.
Declared In
ORKActiveStep.h