iOS Developer Tips

John

Published

Jun 26, 2013

Skip to content
  • Home
  • About
  • Contact
Follow on Twitter

Jun 26, 2013

Run block of code after specified delay

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];

Tweet

All Content Copyright © 2008-2016 • iOS Developer Tips, All Rights Reserved.

Thank you Raam - Designer Independent Publisher Theme