I have a User table in Back4app. I would like to query the table. I am using the below set of statement. It does not work. Please advise. The count always comes to zero.
PFQuery *query = [PFQuery queryWithClassName:@"User"];
[query findObjectsInBackgroundWithBlock:^(NSArray *objects, NSError *error){
NSLog(@"%lu", objects.count);
PFObject *obj = [objects firstObject];
NSLog(@"%@", obj);
NSString *str=[obj valueForKey:@"password"];
NSLog(@"%@", str);
}];