gpt4 book ai didi

ios - 解析不返回对象中包含的查询约束

转载 作者:行者123 更新时间:2023-11-28 22:00:22 24 4
gpt4 key购买 nike

我正在尝试运行此查询,但它没有返回任何对象。有帮助吗?

    for (int arrayIndex=0; arrayIndex<[self.cards count]; arrayIndex++)
{
NSString *senderId = [[deck objectAtIndex:arrayIndex]objectForKey:@"SenderId"];
[list_of_sender_ids addObject:senderId];
}
PFQuery *query = [PFQuery queryWithClassName:@"User"];
[query whereKey:@"facebook_id" containedIn:list_of_sender_ids];
[query findObjectsInBackgroundWithBlock:^(NSArray *objects, NSError *error) {

最佳答案

一些可能会立即出错的事情:首先,要查询用户类,你不应该使用

PFQuery *query = [PFQuery queryWithClassName:@"User"];

但是,

PFQuery *query = [PFUser query];

假设您的 User 类仍然返回 PFUser 对象。另一件要确保正确的事情是 @"Facebook_id" 键,并在 Parse 中确认这是您可以在 Parse User 对象上看到的顶级键。最后,确保 @"SenderId" 也是 deck 中对象的正确键,因为您似乎不是基于可能导致问题的相同键进行查询.

关于ios - 解析不返回对象中包含的查询约束,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25320049/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com