Skip to content

Instantly share code, notes, and snippets.

@jakemoore
Created February 10, 2012 00:42
Show Gist options
  • Save jakemoore/1784843 to your computer and use it in GitHub Desktop.
Save jakemoore/1784843 to your computer and use it in GitHub Desktop.
self.didDownload = [[NSMutableArray alloc] initWithCapacity:[self.wallpapers count]];
for (int i = 0; i < [self.wallpapers count]; i++) {
NSMutableArray *didDownloadPage = [[NSMutableArray alloc] initWithCapacity:2];
[didDownloadPage insertObject:[NSNumber numberWithBool:NO] atIndex:IMG_TYPE_HOME];
[didDownloadPage insertObject:[NSNumber numberWithBool:NO] atIndex:IMG_TYPE_LOCK];
[self.didDownload insertObject:didDownloadPage atIndex:i];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment