/HelpGestureRecognizer

An easy way to add help functionality into your app without a button taking up screen space

Primary LanguageObjective-C

MCHelpGestureRecognizer

A simple way to add help functionality into your app without the need for a button

Example Gif

To use, simply import MCHelpGestureRecognizer.h and MCHelpGestureRecognizer.m into your project (like any other UIGestureRecognizer).

helpRecognizer = [[MCHelpGestureRecognizer alloc] initWithTarget:self action:@selector(showHelp)];
[helpRecognizer setDelegate:self];
[self.view addGestureRecognizer:helpRecognizer];

And then add a callback method:

-(void)showHelp
{
    NSLog(@"HELP ME!");
}

Also, implement this delegate method to allow interaction with other UI Objects:

- (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldReceiveTouch:(UITouch *)touch {
    if ([touch.view isKindOfClass:[UIControl class]]) {
        return NO;
    }
    return YES;
}

Simples!

Oh, and yes, it's MIT licensed. Go wild!