Search code examples
iosquickblox

iOS Quickblox QBRequest error in QBGeneralResponsePage


i'm updating my app to the SDK 2.0.10 and I'm having some problems with QBRequest blocks:

[QBRequest usersForPage:[QBGeneralResponsePage responsePageWithCurrentPage:0 perPage:100] 
successBlock:^(QBResponse *response, QBGeneralResponsePage *page, NSArray *arrayOfUsers) {...}

QBGeneralResponsePage result give invalid results, in every sample i've try, and in my own app:

page.totalEntries = 18446744073709551615

There is also a problem with:

[QBRequest downloadFileWithUID:(NSString *) successBlock:^(QBResponse *response, NSData *fileData) {
//        <#code#>
    } statusBlock:^(QBRequest *request, QBRequestStatus *status) {
//        <#code#>
    } errorBlock:^(QBResponse *response) {
//        <#code#>
    }]

The result in NSData *fileData it's an invalid Data, so if you try to use it in [UIImage imageWithData:fileData]; the result is nil

Do you have any idea about how to solve it??

Thanks in advance


Solution

  • Check out iOS SDK 2.0.11

    http://quickblox.com/developers/IOS#Download_iOS_SDK

    It works there