![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
解析数据
printf程序猿
正常人
展开
-
OC解析XML文件
1系统解析方法 2第三方解析方法1.1系统解析方法(需要先设置代理NSXMLParserDelegate)//获取路径 NSString *path = [[NSBundlemainBundle]pathForResource:@"Students"ofType:@"xml"]; NSData *data = [NSDatadataWithCon原创 2015-12-02 14:56:36 · 541 阅读 · 0 评论 -
json解析数据 再讲数据转化成json
1.系统方法解析 2.第三方解析(JSONKit.h)1 //获取要解析的文件路径 NSString *path = [[NSBundlemainBundle]pathForResource:@"Students"ofType:@"txt"]; NSData *data = [NSDatadataWithContentsOfFile:path];原创 2015-12-02 20:55:48 · 325 阅读 · 0 评论