我在我的 cocoapods 库中使用 reskit 我有一个示例库,我在其中引用我自己的库来进行调用,所以当我从 IOS 示例代码进行调用时,我得到空结果。这是我的代码。
RKObjectRequestOperation *operation = [[RKObjectRequestOperation alloc] initWithRequest:request responseDescriptors:@[responseDescriptor]];
[operation setCompletionBlockWithSuccess:^(RKObjectRequestOperation *operation, RKMappingResult *result) {
device = result.firstObject;
} failure:nil];
[operation start];
[operation waitUntilFinished];
return device;