Skip to content

Instantly share code, notes, and snippets.

@davbeck
Created September 6, 2012 23:19
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davbeck/3661211 to your computer and use it in GitHub Desktop.
Save davbeck/3661211 to your computer and use it in GitHub Desktop.
NSTimer with block
_actionDelayTimer = [NSTimer scheduledTimerWithTimeInterval:1.0 target:[NSBlockOperation blockOperationWithBlock:^{
NSLog(@"Well this is useless.");
}] selector:@selector(start) userInfo:nil repeats:YES];
@geowar1
Copy link

geowar1 commented Feb 22, 2016

Shouldn't the @selector(start) be @selector(main)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment