一,工程圖。 二,代碼。 ...
一,工程圖。
二,代碼。

- (void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
NSString * datapath = [[NSBundle mainBundle] pathForResource:@"failureReason" ofType:@"json"];
NSData * jsonData = [NSData dataWithContentsOfFile:datapath];
NSMutableDictionary *arrayDic = [NSJSONSerialization JSONObjectWithData:jsonData options:NSJSONReadingMutableContainers error:nil];
NSLog(@"----arrayDic---%@",arrayDic);
}
