By delaying method calls inside a loop I noticed that the loop still runs, instead of waiting for the methods to complete. How can I get the loop to wait for the delayed methods to finish before continuing on to the next iteration?
I'm delaying the methods by using the three calls below,
for (int i = 0; i < [phrase length]; i++) {
//Do a bunch of stuff
[self performSelector:@selector(method1) withObject:nil afterDelay:0.1];
[self performSelector:@selector(method2) withObject:nil afterDelay:0.3];
[self performSelector:@selector(method3) withObject:nil afterDelay:0.6];
}