我使用下面的代码加载plist文件
NSDictionary* tSetDict = [NSDictionary dictionaryWithContentsOfFile:plistPath];
NSArray* prefs = [tSetDict objectForKey:@"PreferenceSpecifiers"];
// Iterate through dictionaries to find required value
for (NSDictionary* setDict in prefs){
//.........
}
}
我希望知道setDict属于哪个组(部分)。
有可能吗?
欢迎任何评论
由于
InterDev中
答案 0 :(得分:0)
不确定我是否正确理解了您的问题但我会尝试不管......
使用简单/慢速迭代:
for (int i=0;i < [prefs count];++i)
{
NSDictionary *setDict = [prefs objectAtIndex:i];
NSLog(@"got the dict from section %d", i);
}