Questions tagged as 'alamofire'

1
answer

How to modify the value of a global variable from Alamofire

For example, I need to change the value of the variable existUser which by default is initialized as false to true but when the variable is finished it being in false and only the value true is kept within the response of Alamofire i...
asked by 14.07.2017 / 17:43
1
answer

Alamofire iOS error only with app archived

Apologies for sending the question in English ... I'm having problems making HTTP requests with the iOS Alamofire library. The strange thing is that when I run the application from the XCode itself I do not get any errors but I compile and insta...
asked by 21.10.2016 / 13:40
1
answer

How to parse a JSON with array of dictionaries within another array with Swift and alamofire

I am trying to walk an object with alamofire, and everything is fine until I have to deal with the array of dictionaries that I have within that same object. I think I have a problem with the model, but I'm not sure and since I did not find any...
asked by 25.10.2018 / 21:29
1
answer

Problem with JSON login Alamofire Swift 3 iOS

I am trying to block access to the next window in my app when the server responds with a code different from 200 (ok) but I can not fulfill it. import UIKit import Alamofire class ViewController: UIViewController { @IBOutlet weak var...
asked by 27.04.2017 / 23:42
0
answers

post Video Using Alamofire, error in the headers

I try to upload a video using Alamofire with its upload method - > multipartFormData, but I get an error 401, for the headers, it is assumed that the headers only ask me - > form-data and a token, I have it this way: func head...
asked by 03.10.2018 / 00:59
2
answers

How to set numberOfRowsInSection from an alamofire request?

I need to take the value of my request to set the value of the rows func getProjects(_ role:Int, _ idUser:Int, done:@escaping (_ response:JSON)-> Void){ let parameters:Parameters = ["role":role,"idUser":idUser] Alamofire.request(...
asked by 25.05.2018 / 01:17
0
answers

Error when wanting to parse JSON

Hello I have a query to run my application gives me the following error and I'm not discovering that you should greatly appreciate your help !. From already thank you very much! I attach part of my code import UIKit import Alamofire extensi...
asked by 27.08.2017 / 17:18