Top "Nsurlsession" questions

NSURLSession is the API for HTTP connections introduced in iOS 7 and OS X 10.

URLSession dataTask timeout error

I am currently experiencing some issues regarding the URLSession, while trying to post data to my web server. This however, …

swift swift3 nsurlsession connection-timeout urlrequest
iOS - Best practice to save Images locally - NSCache vs Save in Document Directory

I'm developing an app that similar to Instagram feed (tableviews with cells that contain images and some labels). For all …

ios uiimage nsurlsession nscache
Custom NSURLProtocol with NSURLSession

I'm trying to implement this tutorial which implements a custom NSURLProtocol with NSURLConnection. https://www.raywenderlich.com/76735/using-nsurlprotocol-swift It works …

ios swift nsurlsession nsurlprotocol nsurlsessiondatatask
What is difference between NSURLSessionDataTask vs NSURLSessionDownloadTask

In latest apple introduce new NSURLSession in replace of NSURLConnection, so in there are different task , so what is the …

ios objective-c nsurlsession nsurlsessiondownloadtask nsurlsessiontask
NSURLSession and amazon S3 uploads

I have an app which is currently uploading images to amazon S3. I have been trying to switch it from …

iphone ios cocoa-touch amazon-s3 nsurlsession
what is the advantage of using Alamofire over NSURLSession/NSURLConnection for networking?

Can anyone help me in understanding these question : What is the advantage of using Alamofire over NSURLSession/ NSURLConnection? What are …

nsurlconnection alamofire nsurlsession mobile-application
Memory leak when using NSURLSession.downloadTaskWithURL

So I hit another roadblock in my endeavors with Swift. I am trying to load multiple images into an image …

ios swift memory memory-leaks nsurlsession
NSURLSession dataTaskForRequest:completion: unrecognized selector sent to instance

When trying to create my own session object NSURLSession() and request an url I get an unrecognized selector exception but …

ios swift nsurlsession unrecognized-selector
URLSession doesn't pass 'Authorization' key in header swift 4

I am trying to pass authorization key in header of a URLRequest. But at the server end the key is …

ios swift nsurlsession