4
比方说,我有这样的断言道:是否有“反向”的NSPredicate
NSPredicate *filter = [NSPredicate predicateWithFormat:@"%K == NO", @"someAttribute"];
我想说明上游反向:
NSPredicate *filter = [NSPredicate predicateWithFormat:@"%K == YES", @"someAttribute"];
有没有办法做到这不需要创建一个新的谓词。
无论如何,纯逻辑的'反向'公式应该是'%K!= NO'。 – holex