iphone - how to traverse in the plist -
How do I go to plist to get a price list?
My wrist looks like this:
arrays array number number number array ...
So in code, I first Something has started from:
NSString * imagePlist = [[NSBundle main bundle] pathForResource: @ "Imageinfo" type: @ "plist"]; NSArray * imageArray = [[NSArray alloc] initWithContentsOfFile: imagePlist];
I do not know what's next ??? Give advice. Thank you
Now you have NSArray
... ObjectAtIndex: Use
or: For: (NSArray * Image in SecondLevelArray) {... do something with second level arrays ...}
and < Code> for NSDictionary , objectForKey:
or (id key in dict) {...}
or whatever you want.
NSNumber
: [number intValue]
or float or two or whatever you need.
Comments
Post a Comment