Give me your best solution in swift 4
Asked
Active
Viewed 38 times
-2
-
1Possible duplicate of [Extra argument 'method' in call](https://stackoverflow.com/questions/39571812/extra-argument-method-in-call) – Jayesh Thanki Apr 12 '18 at 06:53
-
plz share alamofire version – Kiran Sarvaiya Apr 13 '18 at 06:33
-
alamofire version 4.7.0 – Indrajit Gaikwad Apr 13 '18 at 09:31
1 Answers
0
There must be problem with your parameters, so try like below code:
Alamofire.request(yourUrl, method: .post, parameters: param as? [String: Any], encoding: JSONEncoding.default, headers: [:])
.responseJSON { response in

Jigar Tarsariya
- 3,189
- 3
- 14
- 38