Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 11-23-2009, 12:31 AM   #1 (permalink)
cbatur
Registered Member
 
Join Date: Nov 2009
Posts: 1
Default 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
cbatur is offline   Reply With Quote
 

» Advertisements
» Online Users: 262
19 members and 243 guests
ADY, apatsufas, ckgni, F_Bryant, IphoneSdk, jakerocheleau, ketaskin, MarkC, michelle, NSeven, rob.mccarthy, rodrigozanatta, smethorst, Sunny46, themathminister, TheWebWizz, V_SC&, Xaron, ziocleto
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,876
Threads: 89,225
Posts: 380,711
Top Poster: BrianSlick (7,129)
Welcome to our newest member, jorge599
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 08:18 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.