NSArray with NSPredicate using NOT IN

前端 未结 2 794
庸人自扰
庸人自扰 2020-12-07 23:37

I have an NSArray that I want to filter out certain objects using an NSPredicate, I was hoping I could use NOT IN since I saw that I can easily do an IN.

So I have m

相关标签:
2条回答
  • 2020-12-08 00:36

    What about NOT (CategoryID IN %@)?

    0 讨论(0)
  • 2020-12-08 00:38

    How about using NONE?

    [NSPredicate predicateWithFormat:@"NONE CategoryID IN %@", parentIDs];
    
    0 讨论(0)
提交回复
热议问题