首页 > 随笔档案 > alamofire extra argument method in call

alamofire extra argument method in call

Publish:

使用Alamofire时代码如下

Alamofire.request(urlString, method: method, parameters: parameters, encoding: Null, headers: headers)

总是提示

extra argument method in call

在stackoverflow找到相关解决方法

Alamofire.request(urlString, method: method, parameters: parameters, encoding: JSONEncoding.default, headers: headers)

Fixed it!

声明: 本文采用 BY-NC-SA 授权。转载请注明转自: levy