zoukankan      html  css  js  c++  java
  • HTTP STATUS CODE

    Temperary:

       dispatch_async(dispatch_get_main_queue(), ^{

            //[MBHUDHelper hideHUDView];

        });

        

        if (error.code==-999) {

            //主动取消请求

        } else if (error.code==-1001) {

            // 请求超时

            dispatch_async(dispatch_get_main_queue(), ^{

                //[MBHUDHelper showWarningWithText:@"请求超时,请稍后重试"];

            });

        } else if (error.code==-1004) {

            dispatch_async(dispatch_get_main_queue(), ^{

                //[MBHUDHelper showWarningWithText:@"未能连接到服务器"];

            });

        } else if (error.code==-1005) {

            dispatch_async(dispatch_get_main_queue(), ^{

                //[MBHUDHelper showWarningWithText:@"网络连接已中断"];

            });

        } else if (error.code==-1009) {

            dispatch_async(dispatch_get_main_queue(), ^{

                //[MBHUDHelper showWarningWithText:@"似乎已断开与互联网的连接"];

            });

        } else {

            dispatch_async(dispatch_get_main_queue(), ^{

                //[MBHUDHelper showWarningWithText:@"网络异常"];

            });

        }

    喜欢请赞赏一下啦^_^

    微信赞赏

    支付宝赞赏

  • 相关阅读:
    正则表达式之断言
    认识CSS中标题引入icon图标
    认识CSS中字体图标
    认识CSS中精灵技术(sprite)和滑动门
    认识CSS中高级技巧之用户界面样式
    认识CSS中高级技巧之元素的显示与隐藏
    认识CSS中布局之文档流、浮动、定位以及叠放次序
    正则表达式之括号
    正则表达式之量词
    正则表达式之字符组
  • 原文地址:https://www.cnblogs.com/share-iOS/p/9804175.html
Copyright © 2011-2022 走看看