What is the largest amount of objects I can put in my NSArray?
Have you tried to find out? ;)
NSMutableArray * a = [[NSMutableArray alloc] init]; NSUInteger i = 0; @try { while (1) { [a addObject:@"hi"]; i++; } } @catch (NSException * e) { NSLog(@"added %llu elements", i); }
1.4m articles
1.4m replys
5 comments
57.0k users