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); }
2.1m questions
2.1m answers
60 comments
57.0k users