parse-platform - 解析 findObjectsInBackground 返回空数组
问题描述
我正在使用 Parse v1.17.2。
我有一个 PFQuery 应该在后台从远程返回对象。
//* ObjC *
PFQuery *custQuery = [CustomSentences query];
[custQuery fromLocalDatastore];
[custQuery whereKey:[CustomSentences userRef] equalTo:[PFUser currentUser]];
[custQuery whereKey:[CustomSentences visibility] equalTo:[NSNumber numberWithBool:YES]];
[custQuery orderByDescending:[CustomSentences updatedAt]];
[custQuery findObjectsInBackgroundWithBlock:^(NSArray *localObjects, NSError *error){
localObjects = [ParseUtils removeInvalidObjects:localObjects];
cust(localObjects,error);
PFQuery *custRQuery = [CustomSentences query];
[custRQuery whereKey:[CustomSentences userRef] equalTo:[PFUser currentUser]];
[custRQuery findObjectsInBackgroundWithBlock:^(NSArray *remoteObjects, NSError *error){
remoteObjects = [ParseUtils removeInvalidObjects:remoteObjects];
NSLog(@"Local Object Count : %lu ; Remote Object Count : %lu",(unsigned long)[localObjects count],[remoteObjects count]);
}];
}];
远程对象数组始终为空。请帮忙。我该如何调试它..
解决方案
推荐阅读
- csv - 在 magento 中导入产品时,我们如何知道哪个特定产品得到了更新?
- ruby-on-rails - Ruby on rails“未定义的方法”错误
- javascript - 反应JS。如何在 React 中通过 ref 获取 ClassList 和其他 DIV 道具
- php - 如何将模态文本输入的值发送到另一个页面?
- python - Facebook 将不正确的数据传递到数据库
- angular - 尝试使用 REST 服务时,离子屏幕变为空白
- webpack - 更改 Vue 构建 dist 文件前缀
- node.js - 无法使用 WebSocket 连接到 node.js 检查器
- windows - 我的静音麦克风脚本不起作用,需要想法和答案
- css - 无法通过 Symfony 项目中的 css 内容属性设置 png 图像