AFNetworking
GitHub:https://github.com/AFNetworking/AFNetworking
AF分为如下5个功能模块:
- 网络通信模块(AFURLSessionManager、AFHTTPSessionManger)
- 网络状态监听模块(Reachability)
- 网络通信安全策略模块(Security)
- 网络通信信息序列化/反序列化模块(Serialization)
- UIKit库的拓展:UIKit+AFNetworking
其中核心模块是AFURLSessionManager,也就是基于NSURLSessionManager封装的请求类。其余四个模块是为了配合网络通信而做的拓展类。AFHTTPSessionManger只是简单封装自NSURLSessionManager的类,简单的http请求一般就用这个类就足够了。
https://github.com/swiftcafex/NSURLSessionSamples
http://imtangqi.com/2016/04/01/from-nsurlconnection-to-nsurlsession/
http://imtangqi.com/2016/05/05/the-notes-of-learning-afnetworking-one/
SDWebImage
GitHub:https://github.com/rs/SDWebImage
http://xgfe.github.io/2017/05/27/shsoul/SDWebImage%E6%BA%90%E7%A0%81%E8%A7%A3%E8%AF%BB/
http://www.guiyongdong.com/2017/01/15/SDWebImage%E6%BA%90%E7%A0%81%E5%88%86%E6%9E%90/
http://imtangqi.com/2016/03/19/the-notes-of-learning-sdwebimage-one/