You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10-4Lines changed: 10 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,9 +14,6 @@ You can add this code in to your App in just two short steps:
14
14
1. Drag DRKonamiGestureRecognizer.h and DRKonamiGestureRecognizer.m into your project
15
15
2. Add the gesture recognizer to one of your app's UIViews using the following code.
16
16
17
-
TIP 1: Practice actually doing the konami gesture with the sample app. Some people have a hard time figuring out who to actually get it going.
18
-
TIP 2: DRKonamiGestureRecognizer.m has NSLog() statements disabled by default. You can enable them at the top of the file.
19
-
20
17
```objective-c
21
18
- (void)addKonami
22
19
{
@@ -31,8 +28,17 @@ TIP 2: DRKonamiGestureRecognizer.m has NSLog() statements disabled by default. Y
31
28
32
29
```
33
30
34
-
NOTE: If you are using arc then you have to disable ARC for DRKonamiGestureRecognizer.m. In Xcode4 go to your project file, then "Build Phases" then "Compile Sources" then add the compiler flag "-fno-objc-arc" to DRKonamiCodeGestureRecognizer.m.
31
+
### Are you using ARC? ###
32
+
33
+
If you are using ARC then there is a 3rd step. You need to to disable ARC for DRKonamiGestureRecognizer.m in your own project. In Xcode4 go to your project file, then "Build Phases" then "Compile Sources" then add the compiler flag "-fno-objc-arc" to DRKonamiCodeGestureRecognizer.m.
34
+
35
+

36
+
37
+
38
+
### TIPS ###
35
39
40
+
* TIP 1: NSLog() statements are disabled inside of DRKonamiGestureRecognizer.m. You can enable them at the top of the file and then the console will print the konami state.
41
+
* TIP 2: Practice actually doing the konami gesture with the sample app. Some people have a hard time figuring out who to actually get it going.
0 commit comments