NSCompoundPredicate
问题 I'm trying to filter a UITableView's data using a UISearchDisplayController and NSCompoundPredicate . I have a custom cell with 3 UILabels that I want to all be filtered within the search, hence the NSCompoundPredicate . // Filter the array using NSPredicate(s) NSPredicate *predicateName = [NSPredicate predicateWithFormat:@"SELF.productName contains[c] %@", searchText]; NSPredicate *predicateManufacturer = [NSPredicate predicateWithFormat:@"SELF.productManufacturer contains[c] %@", searchText