Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
NSTimer with block
_actionDelayTimer = [NSTimer scheduledTimerWithTimeInterval:1.0 target:[NSBlockOperation blockOperationWithBlock:^{
NSLog(@"Well this is useless.");
}] selector:@selector(start) userInfo:nil repeats:YES];
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