第一步:
导入框架:AFNetworking
第二步:
在网络工具里加上一项SSL免证书请求代码
AFSecurityPolicy *securityPolicy = [AFSecurityPolicy defaultPolicy];
securityPolicy.allowInvalidCertificates = YES;
_sharedClient.securityPolicy = securityPolicy;
第三步:
pch文件加入一段宏定义
#define AFNETWORKING_ALLOW_INVALID_SSL_CERTIFICATES