creating an array from another
Hi again,
I have the following array;
NSMutableArray *arrayStocks = [[NSArray alloc] initWithObjects:@"TG:ED:DELL", @"WE:DR:HHG:UU:TRF:DEF:WWS", @"WW:A:SD:QA", @"ER:DW", @"", @"", @"", @"", @"G", nil];
self.listOfItems = arrayStocks;
[arrayStocks release];
and I'd like to create another array from this one that holds the number of characters seperated by " : " . The second array should look like
NSMutableArray *arrayCount = [[NSArray alloc] initWithObjects:@"3", @"7", @"4", @"2", @"0", @"0", @"0", @"0", @"1", nil];
self.itemCount = arrayCount;
[arrayCount release];
any help is appreciated,
Thanks
|