Iphone 如何在plist中进行遍历

Iphone 如何在plist中进行遍历,iphone,plist,Iphone,Plist,如何遍历plist以获取值编号 我的plist如下所示: Arrays Array Dictionary Number Number Array ... 在代码中,我已经开始了一些工作: NSString *imagePlist = [[NSBundle mainBundle] pathForResource:@"Imageinfo" ofType:@"plist"]; NSArray *imageArray = [[NSArray

如何遍历plist以获取值编号

我的plist如下所示:

Arrays
  Array
    Dictionary
       Number
       Number
  Array
    ...
在代码中,我已经开始了一些工作:

NSString *imagePlist = [[NSBundle mainBundle] pathForResource:@"Imageinfo" ofType:@"plist"];    
NSArray *imageArray = [[NSArray alloc] initWithContentsOfFile:imagePlist]; 

我不知道下一步是什么???请告知。谢谢

现在您有了一个
NSArray
。。。查找
objectAtIndex:
或使用:
for(图像数组中的NSArray*secondLevelArray){…使用secondLevelArray做点什么…}

对于
NSDictionary
objectForKey:
for(dict中的id键){…}
或任何您想要的内容


对于
NSNumber
[number intValue]
或float或double或您需要的任何东西。

现在您有了
NSArray
。。。查找
objectAtIndex:
或使用:
for(图像数组中的NSArray*secondLevelArray){…使用secondLevelArray做点什么…}

对于
NSDictionary
objectForKey:
for(dict中的id键){…}
或任何您想要的内容


对于
NSNumber
[number intValue]
或float或double或您需要的任何东西。

好的。。。我忘了这个。。如果第二级数组中有字典呢?你应该如何进入它?still objectForKey:?您可以说
for(NSDictionary*dict in secondLevelArray){…}
是..已经得到了。。谢谢顺便说一句,我刚刚在iphonedev irc频道看到你。无论如何,谢谢。)好啊我忘了这个。。如果第二级数组中有字典呢?你应该如何进入它?still objectForKey:?您可以说
for(NSDictionary*dict in secondLevelArray){…}
是..已经得到了。。谢谢顺便说一句,我刚刚在iphonedev irc频道看到你。无论如何,谢谢。)