SELF成员资格的领域谓词

时间:2019-02-26 12:28:59

标签: objective-c realm

如何在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'

0 个答案:

没有答案