获取服务器响应状态Code
NSURLResponse *responseZt = [task response];
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *)responseZt;
[httpResponse statusCode]
获取服务器响应状态Code
NSURLResponse *responseZt = [task response];
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *)responseZt;
[httpResponse statusCode]
本文标题:网络请求封装
本文链接:https://www.haomeiwen.com/subject/wvehhltx.html
网友评论