3
- (void)loadUserInfoForId:(int)userId
{
    NSMutableDictionary *getRequest = [NSMutableDictionary dictionary];
    [getRequest setObject:[NSNumber numberWithInt:userId] forKey:@"user_id"];
    [QBCustomObjects objectsWithClassName:@"orgeen_users_info" extendedRequest:getRequest delegate:self];
}

- (void)completedWithResult:(Result *)result
{
    if(result.success && [result isKindOfClass:QBCOCustomObjectPagedResult.class])
    {
        QBCOCustomObjectPagedResult *getObjectsResult = (QBCOCustomObjectPagedResult *)result;
        QBCOCustomObject *userInfo = getObjectsResult.objects[0];

        NSLog(@"array_test: %@", userInfo.fields[@"array_test"]);
    }
}


输出显示 fields[@"array_test"] = 558:

数组测试:558


同时管理面板显示 fields[@"array_test"] = {"123", "558"}: 在此处输入图像描述


根据 QB 日志输出,这是真的:

<array_test type="array">
      <array_test>123</array_test>
      <array_test>558</array_test>
    </array_test>

我究竟做错了什么?

PS问题不在于下载了错误的对象,我通过对象和用户ID进行了检查。

4

1 回答 1

3

请尝试 QuickBlox iOS SDK 1.8.5 http://quickblox.com/developers/IOS#Framework_changelog

它工作正常

于 2013-08-26T19:19:53.677 回答