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