IOS开发之JSON转PLIST(把存储json格式的文件转换成plist文件)

NSString *jsonPath = @"/Users/kuju/Desktop/city.json";

NSArray *areaArr = [NSJSONSerialization JSONObjectWithData:[NSData dataWithContentsOfFile:jsonPath] options:NSJSONReadingMutableContainers error:nil];

[areaArr writeToFile:@"/Users/kuju/Desktop/city.plist" atomically:YES];




http://blog.csdn.net/android_ls/article/details/40121525

你可能感兴趣的:(IOS开发之JSON转PLIST(把存储json格式的文件转换成plist文件))