TNTutorialManager is an easy to implement library that helps you create interactive tutorials inside your iOS Apps!


Manual install

Download the folder 'TNTutorialManager' and add the files to your project.

Objective-C only


Add the following line to your Podfile

pod 'TNTutorialManager'

The pod supports both Objective-C and Swift


In order to add a tutorial for your specific ViewController all you need to do is #import <TNTutorialManager.h>, make your ViewController conform to the protocol TNTutorialManagerDelegate, and implement the following required methods:


-(UIView *)tutorialMasterView;


func tutorialMasterView() -> UIView!
func tutorialWrapUp()
func tutorialMaxIndex() -> Int

The method tutorialMasterView should return the UIView that will add the tutorial view as a subview. The method tutorialWrapUp should do the code that takes care of ending the tutorial, like setting the tutorialManager to nil and re-enabling UserInteraction. The method tutorialMaxIndex should return how many steps the tutorial have.

The other optional methods will help you easily make an interactive tutorial:

 Perform actions for a tutorial step, example: Tap a certain button.

 Actions that need to be done before the highlight is done. Example, scroll to a certain UITableViewCell.

 This optional method should return the delay in seconds that the tutorialManager should wait before performing the next highlight, it is used in case there's a UI update that needs to be done.

 This optional method should return NO in case the tutorial shouldn't update for a certain index. Example: If the UI pushes a new UIViewController and you need to start a new tutorial from inside the new UIViewController.

 Methods used for building Tutorial UI.
-(NSArray <UIView *> *)tutorialViewsToHighlight:(NSInteger)index;
-(NSArray <NSString *> *)tutorialTexts:(NSInteger)index;
-(NSArray <TNTutorialEdgeInsets *> *)tutorialViewsEdgeInsets:(NSInteger)index;
-(NSArray <NSNumber *> *)tutorialTextPositions:(NSInteger)index;
-(NSArray <UIFont *> *)tutorialTextsFont:(NSInteger)index;

// Implement this method in case you wish to force the user to go through tutorial.

// Default values are "Next" and "Skip". Implement those methods in case you wish to Localize your application or use different titles.
-(UIFont *)tutorialSkipButtonFont;
-(NSString *)tutorialSkipButtonTitle;

// Default value is [UIColor whiteColor].
-(UIColor *)tutorialButtonsColor;

// Identifier used in NSUserDefaults to save the progress of the tutorial for the specific view controllers. The default value is the class name of the delegate. Implement only in case the same UIViewController class will be used multiple times in your UI and need a different identifier for each time it is used.
-(NSString *)tutorialIdentifier;

The repository comes with a sample project that gives you an example of how to implement different capabilities of the manager.


Feel free to use 'TNKeyboardControlWindow' in any way you like. An attribution is not required, but is highly appreciated.