CocoaPods trunk is moving to be read-only. Read more on the blog, there are 9 months to go.

AlamofireNetWorkRequest 1.0.2

AlamofireNetWorkRequest 1.0.2

Maintained by Sunrise.



 
Depends on:
Alamofire>= 0
SwiftyJSON>= 0
 

  • By
  • Sunrisesd

关于

-基于Alamofire网络请求类的二次封装,用于网络请求

需求

  • iOS 8.0+
  • Xcode 9.0+
  • Swift 4.0+

安装

CocoaPods

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
use_frameworks!

target '<Your Target Name>' do
pod 'AlamofireNetWorkRequest'
end

用法

import AlamofireNetWorkRequest

class MyViewController: UIViewController {

    override func viewDidLoad() {
    
        super.viewDidLoad()
        AlamofireNetWorkRequest.shareInstance.NetWorkJsonRequest(method: HTTPMethod.post, urlStr: "www.baidu.com", parameters: ["key":"value"]) { (dataJson, requestState) in
        
        
        }

    }