![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
网络请求
文章平均质量分 64
MengYangZhang
这个作者很懒,什么都没留下…
展开
-
GET POST通用的网络请求
(void) networkWithURL: (NSString *)urlStr success: (SuccessBlock)blo{NSURLSession *session = [NSURLSession sharedSession]; NSURLSessionDataTask *tesk = [session dataTaskWithRequest:[NSURLRequest reque原创 2016-01-19 20:22:48 · 380 阅读 · 0 评论 -
iOS 判断网络请求
+ (BOOL)isConnectionAvailable{ BOOL isExistenceNetwork = YES; Reachability *reach = [ReachabilityreachabilityWithHostName:@"www.apple.com"]; switch ([reachcurrentReachabilit原创 2016-09-03 17:56:32 · 391 阅读 · 1 评论