Wednesday, 21 August 2013

objectAtIndex for Nested Array iOS

objectAtIndex for Nested Array iOS

Beginners iOS dev question here.
I have a plist in the following format:

I've converted this plist into an array in my app using:
NSMutableArray *array2 = [[NSMutableArray alloc]
initWithContentsOfFile:path];
and have verified the content using NSLog.
However the issue I have is in understanding objectAtIndex. How do i
obtain Item2 in Item1 i.e. the value 6?

No comments:

Post a Comment