// 生成路径
NSString *thepath = [[NSBundle mainBundle] pathForResource:@"xxx" ofType:@"json"];
// 根据路径读取文件内容
NSString *content = [NSString stringWithContentsOfFile:thepath encoding:NSUTF8StringEncoding error:nil];
// 生成路径
NSString *thepath = [[NSBundle mainBundle] pathForResource:@"xxx" ofType:@"json"];
// 根据路径读取文件内容
NSString *content = [NSString stringWithContentsOfFile:thepath encoding:NSUTF8StringEncoding error:nil];