0
我试图使用NSPredicate
搜索Core Data
以获得与NSStrings
匹配的所有结果。下面的作品是用'a'查找结果的,但是如何设置NSPredicate以找到'a','b'和'c'?使用NSPredicate搜索NSStrings的范围
NSPredicate *predicate = [NSPredicate predicateWithFormat:[NSString stringWithFormat:@"Result == 'a'"]];
这很简单 - 谢谢。例如,是否可以设置一个包含'a','b'和'c'的数组,并将谓词设置为使用数组? – RGriffiths 2014-11-01 11:14:30
检查我编辑过的答案@Richard Griffiths – Balu 2014-11-01 11:29:47