美文网首页
.json转.plist,两行代码搞定,不需要某软件转

.json转.plist,两行代码搞定,不需要某软件转

作者: 指尖的世界 | 来源:发表于2017-07-14 11:07 被阅读17次

NSString *path = @"/Users/crf/Desktop/bank.json”;//此处贴地址

NSArray *array = [NSJSONSerialization JSONObjectWithData:[NSData dataWithContentsOfFile:path] options:NSJSONReadingMutableLeaves error:nil];

[array writeToFile:@"/Users/crf/Desktop/bank.plist" atomically:YES];

相关文章

网友评论

      本文标题:.json转.plist,两行代码搞定,不需要某软件转

      本文链接:https://www.haomeiwen.com/subject/rsehdttx.html