2016年4月25日

摘要: 1 // 2 // MyNetworkService.m 3 // 04-天气预报 4 // 5 6 #import "MyNetworkService.h" 7 8 #define BASEURL @"http://www.weather.com.cn" 9 10 @implementation MyNetworkService 11 12 + (void)req... 阅读全文
posted @ 2016-04-25 22:43 爱你久久iOS 阅读(256) 评论(0) 推荐(0) 编辑
摘要: 1 // 2 // ViewController.m 3 // 05-backgroudDownload 4 // 5 6 #import "ViewController.h" 7 8 @interface ViewController () 9 10 @end 11 12 @implementation ViewController 13 14 - (void... 阅读全文
posted @ 2016-04-25 22:40 爱你久久iOS 阅读(188) 评论(0) 推荐(0) 编辑
摘要: 1 // 2 // ViewController.m 3 // 04-UploadTask 4 // 5 #import "ViewController.h" 6 7 #define Boundary @"AaB03x" 8 9 @interface ViewController () 10 11 @end 12 13 @implement... 阅读全文
posted @ 2016-04-25 22:39 爱你久久iOS 阅读(303) 评论(0) 推荐(0) 编辑
摘要: 1 // 2 // ViewController.m 3 // 03-DownloadTask 4 // 5 //如果退出程序后仍能实现断点续传,思路: 6 //1.保存resumeData到本地沙盒路径。 7 //2.分析resumeData是如何记录下载文件信息的。才能设定下次进入时进度条的进度。 8 9 #import "ViewControlle... 阅读全文
posted @ 2016-04-25 22:37 爱你久久iOS 阅读(264) 评论(0) 推荐(0) 编辑
摘要: 1 // 2 // ViewController.m 3 // 02-NSURLSessionConfiguration 4 // 5 #import "ViewController.h" 6 7 @interface ViewController () 8 9 @end 10 11 @implementation ViewController ... 阅读全文
posted @ 2016-04-25 22:34 爱你久久iOS 阅读(252) 评论(0) 推荐(0) 编辑
摘要: /* 网络请求的流程: 1.构造NSURL连接地址 2.构造NSURLRequest请求对象,包含请求头和请求体信息。 3.构造NSURLSessionConfiguration,可选 4.构造NSURLSession会话对象 5.创建请求任务 6.发送网络请求 */ 阅读全文
posted @ 2016-04-25 22:33 爱你久久iOS 阅读(204) 评论(0) 推荐(0) 编辑
摘要: 1 // 2 // ViewController.m 3 // 02-NSURLSessionConfiguration 4 // 5 // Created by kangkathy on 15/11/25. 6 // Copyright © 2015年 kangkathy. All rights reserved. 7 // 8 9 #import... 阅读全文
posted @ 2016-04-25 10:06 爱你久久iOS 阅读(202) 评论(0) 推荐(0) 编辑
摘要: 1 // 2 // ViewController.m 3 // 01-NSURLSession请求网络 4 // 5 // Created by kangkathy on 15/11/25. 6 // Copyright © 2015年 kangkathy. All rights reserved. 7 // 8 9 #import "ViewCon... 阅读全文
posted @ 2016-04-25 10:02 爱你久久iOS 阅读(195) 评论(0) 推荐(0) 编辑

导航