Permalink
Browse files

Minor change.

  • Loading branch information...
1 parent 043bd85 commit cf1d171b55fde5c2ff8235ea5159ee008aa21819 Danny Ricciotti committed Sep 13, 2012
Showing with 8 additions and 5 deletions.
  1. +8 −5 README.md
View
@@ -23,10 +23,13 @@ Optionally, you can require the user to enter A+B+Enter in order for the gesture
```objective-c
-_konamiGestureRecognizer = [[DRKonamiGestureRecognizer alloc] initWithTarget:self action:@selector(_konamiGestureRecognized:)];
-[self.konamiGestureRecognizer setKonamiDelegate:self];
-[self.konamiGestureRecognizer setRequiresABEnterToUnlock:YES];
-[self.view addGestureRecognizer:self.konamiGestureRecognizer];
+- (void)addKonami
+{
+ _konamiGestureRecognizer = [[DRKonamiGestureRecognizer alloc] initWithTarget:self action:@selector(_konamiGestureRecognized:)];
+ [self.konamiGestureRecognizer setKonamiDelegate:self];
+ [self.konamiGestureRecognizer setRequiresABEnterToUnlock:YES];
+ [self.view addGestureRecognizer:self.konamiGestureRecognizer];
+}
#pragma mark -
#pragma mark DRKonamiRecognizerDelegate
@@ -44,4 +47,4 @@ _konamiGestureRecognizer = [[DRKonamiGestureRecognizer alloc] initWithTarget:sel
### DRKonamiGestureProtocol ###
-The DRKonamiGestureProtocol protocol is required only if you are using the A+B+Enter feature. The recognizer will inform its delegate when the A+B+Enter sequence is needed and when the sequence is no longer needed (due to gesture failing or succeeding).
+The DRKonamiGestureProtocol protocol is required only if you are using the A+B+Enter feature. The recognizer will inform its delegate when the A+B+Enter sequence is needed and when the sequence is no longer needed (due to gesture failing or succeeding).

0 comments on commit cf1d171

Please sign in to comment.