I'm not experienced with iOS and Swift, but have been given a project which utilizes NSURLConnection.sendSynchronousRequest
to send a JSON request to a webservice. I know that the synchronous request is a blocking one, but is there anyway I can cancel said request?
For example user presses a button and cancels the request?