Created
September 6, 2012 23:19
-
-
Save davbeck/3661211 to your computer and use it in GitHub Desktop.
NSTimer with block
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
_actionDelayTimer = [NSTimer scheduledTimerWithTimeInterval:1.0 target:[NSBlockOperation blockOperationWithBlock:^{ | |
NSLog(@"Well this is useless."); | |
}] selector:@selector(start) userInfo:nil repeats:YES]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Shouldn't the @selector(start) be @selector(main)?