尝试从多个类(iOS)获取后,parsing返回100
我试图使用相同的PFQuery
从Parse上的5个不同的类中获取数据。
大部分类都有超过100个对象,但除了第一个类以外,其他所有类(超过100个对象)只返回100个。
*我从第一个类获取正确的数字,在它之后,只有100。
我的代码:
PFQuery *query=[PFQuery queryWithClassName:@"Music"]; // 216 objects in class query.limit=1000; [query findObjectsInBackgroundWithBlock:^(NSArray * _Nullable objects, NSError * _Nullable error) { if (error) { NSLog(@"Error: %@",[error description]); } //"objects"'s count: 216 objects }]; query=[PFQuery queryWithClassName:@"Movies"]; //95 objects in class [query findObjectsInBackgroundWithBlock:^(NSArray * _Nullable objects, NSError * _Nullable error) { if (error) { NSLog(@"Error: %@",[error description]); } //"objects"'s count: 95 objects }]; query=[PFQuery queryWithClassName:@"Theater"]; //288 objects in class [query findObjectsInBackgroundWithBlock:^(NSArray * _Nullable objects, NSError * _Nullable error) { if (error) { NSLog(@"Error: %@",[error description]); } //"objects"'s count: 100 objects }]; query=[PFQuery queryWithClassName:@"Food"]; //558 objects in class [query findObjectsInBackgroundWithBlock:^(NSArray * _Nullable objects, NSError * _Nullable error) { NSLog(@"Objects count: %lu",objects.count); if (error) { NSLog(@"Error: %@",[error description]); } //"objects"'s count: 100 objects }]; query=[PFQuery queryWithClassName:@"Toys"]; //21 objects in class [query findObjectsInBackgroundWithBlock:^(NSArray * _Nullable objects, NSError * _Nullable error) { if (error) { NSLog(@"Error: %@",[error description]); } //"objects"'s count: 21 objects }];
如果有人能帮我解决这个问题,我会非常感激,谢谢!