网络请求封装
2021-03-24 本文已影响0人
守护地中海的花
获取服务器响应状态Code
NSURLResponse *responseZt = [task response];
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *)responseZt;
[httpResponse statusCode]
获取服务器响应状态Code
NSURLResponse *responseZt = [task response];
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *)responseZt;
[httpResponse statusCode]