如果我用抓在plist中的数据:如何根据条件声明获取plist项目?
NSString *path = [[NSBundle mainBundle] pathForResource:@"Providers" ofType:@"plist"];
dataArray = [NSMutableArray arrayWithContentsOfFile:path];
for (NSDictionary *dictionary in dataArray)
{
text = [dictionary valueForKey:@"text"];
checked = [dictionary valueForKey:@"checked"];
NSLog(@"%@ checked value is: %@", text, checked);
}
我怎么可能去写检查,看看只有检查设置为YES如果是这样输出的条件语句该供应商
检查一个BOOL或字符串? –
checked BOOL – hanumanDev