Latest 1.0
Homepage https://github.com/JayJJ/JJAFNetworking
License MIT
Platforms ios 7.0, requires ARC
Dependencies AFNetworking, AFDownloadRequestOperation, MJExtension
Frameworks Foundation, UIKit
Authors

封装AFNetworking

使用方法

每一个api继承JJAFNApi。

  • 重写JJAFNApi+RewriteMethod类中的方法,改变请求方式或者参数等。

  • 重写JJAFNApi+HandleMethod类中的方法,处理数据。

  • 该框架实现回调和Block两种方式获取结果。

  • 手动导入:引入头文件JJAFNetworking.h

  • cocoapods导入:pod ‘JJAFNetworking’, ‘~> 1.0’

PS:非常感谢YTKNetwork提供的思路

Latest podspec

{
    "name": "JJAFNetworking",
    "version": "1.0",
    "summary": "A Networking Tool used on iOS.",
    "description": "u5c01u88c5AFNetworking,u4f7fu5f00u53d1u8005u66f4u5bb9u6613u8c03u7528u7f51u7edcu8bf7u6c42u8fdbu884cu5e94u7528u5f00u53d1u3002",
    "homepage": "https://github.com/JayJJ/JJAFNetworking",
    "license": "MIT",
    "authors": {
        "Jay": "[email protected]"
    },
    "source": {
        "git": "https://github.com/JayJJ/JJAFNetworking.git",
        "tag": "1.0"
    },
    "platforms": {
        "ios": "7.0"
    },
    "requires_arc": true,
    "source_files": [
        "JJAFNetworking/*",
        "JJAFNetworking/Api/*",
        "JJAFNetworking/ListApi/*",
        "JJAFNetworking/Manager/*"
    ],
    "frameworks": [
        "Foundation",
        "UIKit"
    ],
    "dependencies": {
        "AFNetworking": [
            "~> 2.6.3"
        ],
        "AFDownloadRequestOperation": [
            "~> 2.0.1"
        ],
        "MJExtension": [
            "~> 3.0.7"
        ]
    }
}

Pin It on Pinterest

Share This