WTRequestCenter
- 授权协议: Apache
- 开发语言: Objective-C
- 操作系统: iOS
- 软件首页: https://github.com/swtlovewtt/WTRequestCenter
软件介绍
WTRequestCenter 是一个网络请求类库库,所有的请求都是缓存的。
GET 请求
[WTRequestCenter getWithURL:url
parameters:parameters
completionHandler:^(NSURLResponse *response, NSData *data, NSError *error) {
id obj = [NSJSONSerialization JSONObjectWithData:data options:NSJSONReadingMutableContainers error:&jsonError];
NSLog(@"result:%@",obj);
}
POST 请求
[WTRequestCenter postWithURL:url
parameters:parameters
completionHandler:^(NSURLResponse *response, NSData *data, NSError *error) {
id obj = [NSJSONSerialization JSONObjectWithData:data options:NSJSONReadingMutableContainers error:&jsonError];
NSLog(@"result:%@",obj);
}
缓存图片
NSURL *url = [NSURL URLWithString:@"http://www.xxx.com/eqdsa.jpg"];
UIImageView *imageView = [[UIImageView alloc] initWithFrame:CGRectZero];
[WTRequestCenter getImageWithURL:url imageComplectionHandler:^(UIImage *image) {
imageView.image = image;
}];
取消所有请求
[WTRequestCenter cancelAllRequest];
Web开发敏捷之道
Sam Ruby、Dave Thomas、David Heineme Hansson / 慕尼黑Isar工作组、骆古道 / 机械工业出版社 / 2012-3-15 / 59.00元
本书第1版曾荣获Jolt大奖“最佳技术图书”奖。在前3版的内容架构基础上,第4版增加了关于Rails中新特性和最佳实践的内容。本书从逐步创建一个真正的应用程序开始,然后介绍Rails的内置功能。全书分为3部分,第一部分介绍Rails的安装、应用程序验证、Rails框架的体系结构,以及Ruby语言的知识;第二部分用迭代方式创建应用程序,然后依据敏捷开发模式搭建测试案例,最终用Capistrano完成......一起来看看 《Web开发敏捷之道》 这本书的介绍吧!
