I need to record some data/info when Alamofire called resume to start the request. (I used Swift in my project) Is there anyway without do method_swi ...
I need to record some data/info when Alamofire called resume to start the request. (I used Swift in my project) Is there anyway without do method_swi ...
I am getting the following crash on crashlytics which I can not reproduce on my device at the following line I handled session invalidation at ...
The reference for this method only says what happens locally on the client, and says nothing about what it potentially sends to the server. Apparently ...
I don’t know how to execute multiple NSUrlSession tasks one by one. When first task finishes start second task, when second task finishes start third ...
Could any one please tell me what is the real advantage gained by using NSURLSessionTask inside NSOperation while making http network calls in iOS? We ...
In the startLoading method of my URLProtocol subclass, I create a URLSession and URLSessionStreamTask. I resume the task and add a BlockOperation to c ...
I'm practicing making a URLProtocol subclass. I'm using URLSessionStreamTask to do the reading & writing. When trying out the subclass, I got a ti ...
I am performing some NSURLSessionTask. It takes nearly 10-15 seconds to complete the task.Everything goes well when iPhone is in active state. The pr ...
I have two view controller Controller A and controller B In controller A i have a button to present view controller B. In controller B i have a butt ...
When I turn off my WiFi connection and run the following code on the iPhone 6s 10.2 simulator, the callback is never executed. I expected the callback ...
THIS IS NOT A REPEATED QUESTION, READ ON. I am upgrading the deprecated code in my app to iOS10 compliance. THE ERROR: NSURLSession is giving me tro ...
Why is NSURLSession operation queue empty after creating and resuming an NSURLSessionTask? Is there a way to tell if an NSURLSession has tasks pendin ...
In this example I kick off 100 NSURLSessionDataTask at default priority but then set the last one to high priority. However it seems to have no effect ...
Before asking a question, let me clarify what I understand about iOS App states: Backgrounded: In this state, your app is not in the foreground any ...
I used NSURLConnectionobject and called its method cancel sometimes. Now I should replace NSURLConnection -> NSURLSession. NSURLSession operates w ...
I want to resume downloading after user cancels downloading or something wrong happens. But when I call cancelByProducingResumeData method, the resume ...
I am trying to calculate network speed in my app, so I can upload only that much of data which can be uploaded in such network conditions. For that wh ...
When using NSURLSession's dataTaskWithRequest how can total response time be measured in the event that many NSURLSessionDataTask are created and will ...
I have been trying to implement a way to do public key pinning in my iOS 8+ app using NSURLSession. What I do is just implement the delegate method d ...
I write a code that get recipes in form of JSON from a server and present it into a UItable. This server is written in Ruby. Now I want to write a ...