标签:http io ar os sp 数据 on log cti
[manager GET:serverURL parameters:nil success:^(AFHTTPRequestOperation *operation, id responseObject) {
// 3 解析返回的JSON数据
// 3.1
// NSDictionary *result1 = (NSDictionary *)responseObject;
// 3.2
// NSString *requestTmp = [NSString stringWithString:operation.responseString];
// NSData *resData = [[NSData alloc] initWithData:[requestTmp dataUsingEncoding:NSUTF8StringEncoding]];
// NSDictionary *result2 = [NSJSONSerialization JSONObjectWithData:resData options:NSJSONReadingMutableLeaves error:nil];
// NSLog(@"response:%@",responseObject);
// 3.3
NSData *responseData = [NSJSONSerialization dataWithJSONObject:responseObject options:NSJSONWritingPrettyPrinted error:nil];
NSDictionary *result3 = [NSJSONSerialization JSONObjectWithData:responseData options:NSJSONReadingMutableLeaves error:nil];
标签:http io ar os sp 数据 on log cti
原文地址:http://www.cnblogs.com/tx8899/p/4084314.html