json 转出plist 方法

2018-01-30  本文已影响15人  panda_熊猫
NSString *path = @"/Users/bihu_niuniu/Desktop/CityData.json";

NSArray *array = [NSJSONSerialization JSONObjectWithData:[NSData dataWithContentsOfFile:path] options:NSJSONReadingMutableLeaves error:nil];
[array writeToFile:@"/Users/bihu_niuniu/Desktop/CityData.plist" atomically:YES];
上一篇 下一篇

猜你喜欢

热点阅读