there is a method for PFQuery
PFQuery *query = [PFQuery queryWithClassName:@"class"];
[query whereKey:(NSString *)key containsAllObjectsInArray:(NSArray *)array];
is there similar method to define if there is NO specified object in array? like
[query whereKey:(NSString *)key doesNotContainAllObjectsInArray:(NSArray *)array];
If no, how to code this method by myself?
You can use the whereKey:notContainedIn:
method for it.Please have a look at the documentation of Parse. Here's the sudo code from the link.
// Finds scores from anyone who is neither Jonathan, Dario, nor Shawn
NSArray *names = @[@"Jonathan Walsh",
@"Dario Wunsch",
@"Shawn Simon"];
[query whereKey:@"playerName" notContainedIn:names];
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With