NSArray *array = [NSArray array];
NSPredicate *predicate = [NSPredicate predicateWithFormat:@"self.msgid == %@",feed.msgid];
NSArray *filterArr = [array filteredArrayUsingPredicate:predicate];
- NSPredicate *predicate1=[NSPredicate predicateWithFormat:@"name=='holydancer'"];//创建谓词判断属性
- NSPredicate *predicate2=[NSPredicate predicateWithFormat:@"child.age==5"];//创建谓词判断属性的属性
时间: 2024-09-25 04:48:08