Skip to content

Instantly share code, notes, and snippets.

@beelsebob
Created July 29, 2011 14:30
Show Gist options
  • Save beelsebob/1113915 to your computer and use it in GitHub Desktop.
Save beelsebob/1113915 to your computer and use it in GitHub Desktop.
- (void)cpsSquence:(NSArray *)is
{
[self cpsSquence:is atIndex:0];
}
- (void)cpsSequence:(NSArray *)is atIndex:(NSUInteger)idx
{
if ([is count] > idx)
{
[[is objectAtIndex:idx] runWithCompletionBlock:^ ()
{
[self cpsSequence:is atIndex:idx+1];
}];
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment