我正在尝试搜索NSDictionary
存储在NSMutableArray
for (int k = 0; k < [onlyActiveArr count]; k++) {
NSString *localID = [onlyActiveArr objectAtIndex:k];
NSLog(@"%@",localID);
int localIndex = [onlyActiveArr indexOfObject:localActiveCallID];
NSLog(@"%d",localIndex);
for (NSDictionary *dict in self.SummaryArr) {
NSLog(@"%@",[dict objectForKey:@"ActiveID"]);
if (![[dict objectForKey:@"ActiveID"] isEqualToString:localID]) {
NSLog(@"found such a key, e.g. %@",localID);
}
}
}
但我越来越
NSLog(@"found such a key, e.g. %@",localActiveCallID);
当 ID 仍然存在时SummaryArr
,我正在检查字典中是否不存在localID
从中检索到的 ID。onlyActiveArr
请建议我如何克服我的问题。