Dicには、入れ子になった辞書データが入っています。
NSDictionary * Dic;
NSArray *ary = [Dic allValues];
integer_t count = 0;
for( NSDictionary* valu in ary ) {
NSArray *ary_sub = [valu allValues];
NSString *str = [ary_sub componentsJoinedByString:@","];
SNLog(@"str=%@",str);
if (str.integerValue==1) {
count = count +1;
SNLog(@"count=%d",count);
}
}
NSDictionary * Dic;
NSArray *ary = [Dic allValues];
integer_t count = 0;
for( NSDictionary* valu in ary ) {
NSArray *ary_sub = [valu allValues];
NSString *str = [ary_sub componentsJoinedByString:@","];
SNLog(@"str=%@",str);
if (str.integerValue==1) {
count = count +1;
SNLog(@"count=%d",count);
}
}