【发布时间】:2016-09-14 10:12:01
【问题描述】:
我想使用 AFNetworking 库在 iOS 的 Objective-C 中解析 JSON
{
"success": 1,
"row": [
{
"amount": 2800
}
]
}
代码 -
arrAmount = [responseObject valueForKey:@"row"];
NSLog(@"%@",arrAmount);
NSString *strAmount =[NSString stringWithFormat:@"%@", [arrAmount valueForKey:@"amount"]];
self.lblAmount.text =[NSString stringWithFormat:@"%@",strAmount];
【问题讨论】:
标签: ios objective-c json parsing afnetworking