I do not know if this has changed since the question was originally published, but I get the same predicate from all three of them.
[NSPredicate predicateWithFormat:@"myIntValue IN {1, 2, 3, 4}"]; [NSPredicate predicateWithFormat:@"myIntValue IN {%d, %d, %d, %d}", 1, 2, 3, 4]; [NSPredicate predicateWithFormat:@"myIntValue IN %@", @[@1, @2, @3, @4]];
Therefore, there is no need to wrap all objects.
source share