qq_遁去的一_1
json文件和plist文件类似,只是json多一步解析的操作;现在常用的解析如下;NSString *path = [[NSBundle mainBundle] pathForResource:@"mJson" ofType:@"json"];NSData *jsonData = [NSData dataWithContentsOfFile:path options:NSDataReadingMappedIfSafe error:nil];NSMutableDictionary *dic = [NSJSONSerialization JSONObjectWithData:jsonData options:NSJSONReadingMutableContainers error:nil];得到字典类型的数据后就可以使用了