简体   繁体   中英

Parse PFQuery not returning array of all objects in a class

I am running the query detailed below. It does not log any error and proceeds to log the objects array. When it logs the objects array it displays every object within it up until the first object that was added to the class today. No objects other than the first one added today are displayed. If I delete the first object from today it will display every object up until the new first object for today.

PFQuery *query = [PFQuery queryWithClassName:@"className"];
[query findObjectsInBackgroundWithBlock:^(NSArray *objects, NSError *error) {
    if (!error) {
        NSLog(@"%@", objects);
        }
    } else {
        NSLog(@"Error: %@", error);
    }
}];

我无法弄清楚为什么会发生这种情况,因此我只创建了一个新类,并将旧类中的所有值添加到它中,它开始起作用。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM