Memory efficient collection class
- by Joe
I'm building an array of dictionaries (called keys) in my iphone application to hold the section names and row counts for a tableview.
the code looks like this:
[self.results removeAllObjects];
[self.keys removeAllObjects];
NSUInteger i,j = 0;
NSString *key = [NSString string];
NSString *prevKey = [NSString string];
if ([self.allResults count]…