0
在我开发的iOS应用中,我使用parse.com作为后端。 SDK版本是1.2.20。抓取回调块永远不会被调用
问题都是这样的表演时取:
[PFObject fetchAllIfNeededInBackground:objectsToFetch block:^(NSArray *objects, NSError *error) {
[[NSOperationQueue mainQueue] addOperationWithBlock:^{
[self.collectionView reloadData];
}];
}];
此块不会被调用,有或没有错误。没有超时,没有办法调试或知道发生了什么。
我自己也尝试这种形式:
NSOperationQueue * parseQueue = [NSOperationQueue new];
[parseQueue addOperationWithBlock:^{
[PFObject fetchAll:objectsToFetch];
[self.collectionView reloadData];
}];
我设置上重装数据断点,这是从来没有击中。
“宝objectsToFetch”从调试器控制台:
<__NSArrayM 0x11620c710>(
<Object:g06aHOTaLI:(null)> {
},
<Object:XDTcLQCegF:(null)> {
},
<Object:KCIFxCSBUw:(null)> {
},
<Object:g06aHOTaLI:(null)> {
},
<Object:0PjRyl9cC4:(null)> {
},
<Object:WjYY01c931:(null)> {
},
<Object:m9F2Dm8HhD:(null)> {
}
)
任何人都可以点我在正确的方向来解决这个问题?
您是如何确定您使用的Parse SDK版本的? – ArtOfWarfare 2014-10-25 14:05:13
我刚刚在下载的名称中看到它 – yairsz 2014-10-28 00:50:15