如何在Realm中为SELF成员资格创建谓词
我已经对NSArray
进行了高度过滤,希望进一步过滤(RLMResults
等价的数组不可用)
NSArray * users = ...
...
RLMResults * results = [User objectsWhere:@"(ANY SELF IN %@)", users];
...
RLMResults * results = [User objectsWhere:@"(SELF IN %@)", users];
均为收益率
'Invalid predicate', reason: 'Predicate with ANY modifier must compare a KeyPath with RLMArray with a value'