Quickblox:未正确下载自定义对象中的数组

时间:2013-08-14 16:39:45

标签: quickblox

- (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"]);
    }
}


输出显示字段[@“array_test”] = 558:

  

array_test:558


同时管理面板显示字段[@“array_test”] = {“123”,“558”}: enter image description here


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

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

我做错了什么?

P.S。问题不在于下载了错误的对象,我按对象和用户ID进行了检查。

1 个答案:

答案 0 :(得分:3)

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

一切正常