我遵循了几个使用 NSFetchedResultsController 类来检索和显示数据以在 UITableView 中显示的教程。如果我只是想在一个简单的 UIViewController 上的文本框中显示我的 JSON 结果集,该怎么办?有没有人有一个例子如何做到这一点?以下是我的代码片段;
// Request Object with json paramaters
RequestInquiry *requestInquiry = [[RequestInquiry alloc] init];
requestInquiry.docType = @"T";
//requestInquiry.documentNum = @"999999999";
requestInquiry.documentNum = self.strTicketNum;
requestInquiry.clientAccount = @"6";
requestInquiry.clientCode = @"02";
requestInquiry.token = @"f1234XFASF43434";
requestInquiry.requestType = @"submit";
requestInquiry.userId = @"XXXX";
requestInquiry.class1 = @"class com.rest.client.JsonRequest";
[[RKObjectManager sharedManager] postObject:requestInquiry path:@"/RestIVR/restservices/ticketservices/jinquiry" parameters:nil success:nil failure:^(RKObjectRequestOperation *operation, NSError *error) {
NSLog(@"Error: %@",error);
}];