Latest 0.1.6
Homepage https://github.com/xzx951753/ZXNetwork
License MIT
Platforms ios 8.0
Dependencies AFNetworking
Authors

AFNetworking的简单封装

Example


    [ZXNetworkManager sendRequestMethod:HTTPMethodGET
                              serverUrl:@"http://192.168.88.249:20000"
                                apiPath:@"index"
                             parameters:nil
                               progress:nil
                                success:^(BOOL isSuccess, id  _Nullable responseObject) {
                                    NSLog(@"%@",responseObject);
                              } failure:^(NSString * _Nullable errorMessage) {
                                    NSLog(@"%@",errorMessage);
                              }];

Updated

0.1.3 :针对服务器status 500+ 和400+ 错误发送相应的通知
0.1.4 :修复当出现400+错误时,导致崩溃.
0.1.5 : 修复url拼接bug
0.1.6 : 声明返回数据结果为json格式

Installation

pod 'ZXNetwork'

Author

xzx951753, [email protected]

License

ZXNetwork is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "ZXNetwork",
    "version": "0.1.6",
    "summary": "AFNetworking u7684u7b80u5355u5c01u88c5(OC)",
    "description": "TODO: Add long description of the pod here.",
    "homepage": "https://github.com/xzx951753/ZXNetwork",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "xzx951753": "[email protected]"
    },
    "source": {
        "git": "https://github.com/xzx951753/ZXNetwork.git"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "ZXNetwork/Classes/**/*",
    "dependencies": {
        "AFNetworking": [
            "~> 3.2.0"
        ]
    }
}

Pin It on Pinterest

Share This