Created
April 15, 2014 18:17
-
-
Save Julioacarrettoni/10755114 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NSString* gKKeyCounter = @"numbersOfTimeTheViewWithGKWasOpen"; | |
NSUserDefaults* userDefaults = [NSUserDefaults standardUserDefaults]; | |
if ([userDefaults integerForKey:gKKeyCounter] > 10) { | |
[self startGK]; //The method that initializes and start gesture kit | |
} | |
else { | |
[userDefaults setInteger:[userDefaults integerForKey:gKKeyCounter]+1 forKey:gKKeyCounter]; | |
[userDefaults synchronize]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment