Inherits from UIViewController
Declared in RMStepsController.h

Overview

RMStepsController is an iOS control for guiding a user through a process step-by-step. It uses an instance of RMStepsBar for showing the currently selected step and the total number of steps.

When creating subclasses of RMStepsController make sure you overwrite the following instance methods:

Tasks

Properties

  •   stepsBar

    Returns the instans of RMStepsBar used.

    property
  •   results

    Returns an instance NSMutableDictionary which can be used for storing results of one step. These results can then be accessed by another step using the dictionary returned here.

    property

Instance Methods

Properties

results

@property (nonatomic, strong, readonly) NSMutableDictionary *results
Discussion

Returns an instance NSMutableDictionary which can be used for storing results of one step. These results can then be accessed by another step using the dictionary returned here.

Declared In

RMStepsController.h

stepsBar

@property (nonatomic, strong, readonly) RMStepsBar *stepsBar
Discussion

Returns the instans of RMStepsBar used.

Declared In

RMStepsController.h

Instance Methods

canceled

- (void)canceled
Discussion

This method is called after [RMStepsController showPreviousStep] has been called in the first step. A subclass of RMStepsController is supposed to do whatever needs to be done here after the process has been canceled by the user.

Declared In

RMStepsController.h

finishedAllSteps

- (void)finishedAllSteps
Discussion

This method is called after [RMStepsController showNextStep] has been called in the last step. A subclass of RMStepsController is supposed to do whatever needs to be done here after all steps have been finished.

Declared In

RMStepsController.h

showNextStep

- (void)showNextStep
Discussion

Call this method to proceed to the next step. When you call this method when already in the last step [RMStepsController finishedAllSteps]will be called.

Declared In

RMStepsController.h

showPreviousStep

- (void)showPreviousStep
Discussion

Call this method to go one step back. When you call this method when already in the first step [RMStepsController canceled]will be called.

Declared In

RMStepsController.h

showStepForIndex:

- (void)showStepForIndex:(NSInteger)index
Discussion

Call this method to proceed to the needed step.

Declared In

RMStepsController.h

stepViewControllers

- (NSArray *)stepViewControllers
Discussion

A subclass of RMStepsController is supposed to return an array of view controllers here. Every view controller will be one step in the process. The first element in the array will be the first step and the last element will be the last step.

The default implementation returns an empty array.

Return Value

An array with one view controller for every step.

Declared In

RMStepsController.h