0

我想使用来自 QuickBlox API 的 Parentid 检索所有子对象。我该怎么做。谁能建议在 ios 平台上这样做的正确方法。

4

1 回答 1

0

你应该使用方法

+ (QB_NONNULL QBRequest *)objectsWithClassName:(QB_NONNULL NSString *)className
                           extendedRequest:(QB_NULLABLE NSMutableDictionary QB_GENERIC(NSString *, NSString *) *)extendedRequest
                              successBlock:(QB_NULLABLE void (^)(QBResponse *QB_NONNULL_S response, NSArray QB_GENERIC(QBCOCustomObject *) *QB_NULLABLE_S objects, QBResponsePage *QB_NULLABLE_S page))successBlock
                                errorBlock:(QB_NULLABLE QBRequestErrorBlock)errorBlock;

使用extendedRequest,例如:

NSMutableDictionary *extendedRequest = [NSMutableDictionary dictionary];
[requestParameters setObject:parendID forKey:@"_parent_id"];
于 2016-04-21T10:28:05.043 回答