![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据请求
刚刚下课
你猜我在想什么
展开
-
json解析转化成数组,字典等类型,nsstring 转换
NSString *pathString = @“www.baidu.com”; NSData *tmpData = [NSData dataWithContentsOfFile:pathString]; NSArray *jsonArr = [NSJSONSerialization JSONObjectWithData:tmpData opti原创 2016-07-20 14:12:57 · 512 阅读 · 0 评论 -
数据请求的两种方法 get post NSURLConnection请求
post 数据请求 NSURL *url = [NSURL URLWithString:@"http://172.16.150.131:8081/app/insertAppActionStatistics"]; // 2. 请求(可以改的请求) NSMutableURLRequest *request = [NSMutableURLRequest req原创 2016-07-20 14:08:13 · 273 阅读 · 0 评论