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

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


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

array_test: 558


同时管理面板显示 fields[@"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>

我做错了什么?

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

最佳答案

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

一切正常

关于Quickblox:自定义对象中的数组未正确下载,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18237461/

相关文章:

Quickblox REST API 隐私列表

android - 用于视频和音频聊天的 Quickblox 框架中的最大用户数

Swift:Quickblox 跟踪启动调用并出现错误(调试)

ios - QuickBlox iOS 问题 - 密码未验证

java - Quickblox android 聊天 - 音频附件上传失败

ios - Quickblox 聊天 API 中的消息出现延迟

ios - Quickblox 聊天应用 : new message received should fire the appropriate uitableviewcell

android - Quickblox : how i come to know whether message is sent/received or not?

android - QuickBlox 使用 GeoRect 方法获取位置