Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I use pfquery in parse.com filtering on a boolean field in ios?

doing a query in an ios/objective c app against a Parse.com datasource how do I construct my PFQuery to filter on a boolean column?

I have something like this;

PFQuery *query = [PFQuery queryWithClassName:@"MyClass"];
[query whereKey:@"MyBoolCol" equalTo:TRUE];

How do I construct this please?

Thanks.

like image 498
stan4th Avatar asked Jun 01 '12 15:06

stan4th


1 Answers

[query whereKey:@"MyBoolCol" equalTo:[NSNumber numberWithBool:YES]];
like image 71
Daddy Avatar answered Oct 20 '22 17:10

Daddy