Created
January 12, 2016 13:53
-
-
Save bouchtaoui-dev/b32e6f005a52d758be26 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
- (void) startTimer { | |
NSTimer *timer = [NSTimer scheduledTimerWithTimeInterval: 0.1 target:self selector:@selector(fireMe) userInfo:nil repeats:YES]; | |
} | |
- (void) fireMe { | |
NSLog(@"I'm fired!"); | |
} | |
// By setting the repeats on YES, makes the timer execute every 0.1 sec which is 100 ms. | |
// By setting it to NO, will execute the timer just once. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment