skip to Main Content

How to pass to URLSession.shared.dataTask called in a loop? – Plesk

I am downloading image from server and when image is downloaded I have to save that image in coredata with id. Here is the code for actionDict:JSON in actionData { if(actionDict["ProtocolImage"].stringValue.isValidURL()) { URLSession.shared.sessionDescription = "(actionDict["Id"].intValue)" URLSession.shared.dataTask(with: URL(string: actionDict["ProtocolImage"].stringValue)!, completionHandler: {…

VIEW QUESTION
Back To Top
Search