标签:
NSString * jsonPath=[[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:@"Contents.json"];
NSString * jsonStr=[[NSString alloc] initWithData:[NSData dataWithContentsOfFile:jsonPath] encoding:NSUTF8StringEncoding];
NSLog(@"%@",jsonStr);
NSError * error=nil;
JSContentsModel * oneModel=[[JSContentsModel alloc] initWithString:jsonStr usingEncoding:NSUTF8StringEncoding error:&error];
标签:
原文地址:http://www.cnblogs.com/springday/p/4810382.html