一、简述
在Alamofire中为了方便管理,明确分工,Alamofire对整个请求过程做了明确划分,并统一交由SessionManager来管理。SessionManager负责SessionDelegate、URLSession、URLRequest等对象创建与管理。先看一段请求示例:
let u…
1. Alamofire github 地址:
Alamofirehttps://github.com/Alamofire/Alamofire
2. 终端切换到项目文件夹, 执行指令 pod init , 项目文件夹中, 打开 Podfile 文件,写入库名称
# Uncomment the next line to define a global platform …