我将 PFQueryTableViewController 子类化,但它只会返回当前登录用户的数据。我怎样才能让它从所有用户那里检索数据?
查询代码
- (PFQuery *)queryForTable {
PFQuery *query = [PFQuery queryWithClassName:self.parseClassName];
// If no objects are loaded in memory, we look to the cache first to fill the table
// and then subsequently do a query against the network.
//if (self.objects.count == 0) {
// query.cachePolicy = kPFCachePolicyCacheThenNetwork;
//}
//[query orderByDescending:@"QuestionA"];
//[query whereKey:@"post" equalTo:@"0"];
//NSLog(@"%@",query);
return query;
}