标签:
1、写入(本地)
NSArray *paths=NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString *path=[paths objectAtIndex:0];
NSString *Json_path=[path stringByAppendingPathComponent:@"JsonFile.json"];
//==写入文件
NSLog(@"%@",[JsonData writeToFile:Json_path atomically:YES] ? @"Succeed":@"Failed");
2、读取
标签:
原文地址:http://www.cnblogs.com/cranz-jf/p/5207637.html