NSArray with NSPredicate using NOT IN

前端 未结 2 805
庸人自扰
庸人自扰 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:38

    How about using NONE?

    [NSPredicate predicateWithFormat:@"NONE CategoryID IN %@", parentIDs];
    

提交回复
热议问题