Created
July 29, 2011 14:30
-
-
Save beelsebob/1113915 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (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