I've created a PFQuery to fetch all the objects in class "Albums" (512 objects).
When I'm creating a PFQuery and calling findObjectsInBackgroundWithBlock
method on it, it returns just 100 objects instead of 512, although I added the line
query.limit=1000;
My code:
PFQuery *query=[PFQuery queryWithClassName:@"Albums"];
query.limit=1000;
[query findObjectsInBackgroundWithBlock:^(NSArray * _Nullable objects, NSError * _Nullable error) {
if (error) {
NSLog(@"Error: %@",[error description]);
}
NSLog(@"%lu",objects.count); //print - 100
self.albums=objects;
NSLog(@"%ld",(long)self.supermarkets.count); //print - 100
}];
Thank you very much!!!