Brian Coleman writes a short tutorial on how to run a block of code after a specified delay. The original code, courtesy Duncan C, is written as a category on NSObject class.
An example follows:
1 2 |
[self performBlock:^{code here} afterDelay: 2.5]; [self performBlock:^{code here} afterDelay: 10]; |