MHBlurTutorials 0.1.2

MHBlurTutorials 0.1.2

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Jul 2015

Maintained by Mathilde Henriot.




MHBlurTutorials allows you to highlight some elements and display explanation text

!Screenshot

Version

0.1.2

Installation

MHBlurTutorials is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "MHBlurTutorials"

Usage

Import the library where you need it.

#import <MHBlurTutorialsViewController.h>

Then you can create your tutorials like this :

MHBlurTutorialsViewController *homeTutorialController = [[MHBlurTutorialsViewController alloc] init];
homeTutorialController.modalPresentationStyle = UIModalPresentationOverFullScreen;
homeTutorialController.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;

[self presentViewController:homeTutorialController animated:YES completion:^{
    [homeTutorialController setAnimations:@[
            @{
                @"text":@"Explanation Text",
                @"textCenter":[NSValue valueWithCGPoint:CGPointMake(CGRectGetMidX(self.view.frame), 300)],
                @"holeRadius":@(60),
                @"holeCenter":[NSValue valueWithCGPoint:CGPointMake(120, 150)]
            },

            ...
    ]

    [homeTutorialController setBackgroundColor:[UIColor colorWithWhite:0 alpha:0.7]];
    [homeTutorialController setExplanationLabelFont:[UIFont fontWithName:@"Source Sans Pro" size:15]];
    [homeTutorialController displayTutorial];
];

Author

Mathilde Henriot, [email protected]

License

MHBlurTutorials is available under the MIT license. See the LICENSE file for more info.