Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

portem1

macrumors newbie
Original poster
Jan 18, 2011
9
0
Hi again, i'm new in objective c so, i again have problem...
It is multidimensional array or something similar in this language? I'm getting info from webservice witch i want to store in array. In c# it could look like:

array[0][0] = name
array[0][1] = surname
array[0][2] = age
array[1][0] = name1
array[1][1] = name2
array[1][2] = name3

and etc. Then i Need second person name i could just write array[1][0]. So how to do ir in objective c?
 

robbieduncan

Moderator emeritus
Jul 24, 2002
25,611
893
Harrogate
You can use multidimensional C arrays as normal. Objective-C is a pure superset of C. Or you can use a NSArray (or NSMutableArray) which contains NSArray (or NSMutableArrays) at each index.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.