摘要:
1.去重NSArray * uniqueVarValueArray= [origArray valueForKeyPath:@"@distinctUnionOfObjects.VarKey"];2.判断Array中是否包含某一规则的对象,并返回一个数组:NSPredicate *filterPredicate = [NSPredicate predicateWithFormat:@"SELF CONTAINS %@", regex];并调用:- (NSArray *)filteredArrayUsingPredicate:(NSPredicate *)p 阅读全文