Questions tagged [nsurlconnectiondelegate]

The NSURLConnectionDelegate protocol defines methods common to the NSURLConnectionDataDelegate and NSURLConnectionDownloadDelegate protocols.

The NSURLConnectionDelegate protocol defines methods common to the NSURLConnectionDataDelegate and NSURLConnectionDownloadDelegate protocols.

Delegates of NSURLConnection objects should implement either the data or download delegate protocol (including the methods described in this protocol). Specifically:

If you are using NSURLConnection in conjunction with Newsstand Kit’s downloadWithDelegate: method, the delegate class should implement the NSURLConnectionDownloadDelegate protocol.

Otherwise, the delegate class should implement the NSURLConnectionDataDelegate protocol.

Source: NSURLConnectionDelegate class reference

Useful links

167 questions
0
votes
1 answer

NSURLConnetion get access denied response [ios]

I got a problem when I was trying to implement NSURLConnetion. I want to send image and GPS data from mobile side to server and get response from it. My app works perfectly on wifi, but when I try to send data through mobile cellular or 3G. It…
Xiang
  • 17
  • 7
0
votes
2 answers

handling response with NSURLConnection

I have created an array of NSURLConnections, as I am running through a for loop and creating multiple NSURLConnections. Here is my code for(int i = 0; i
Ranjit
  • 4,576
  • 11
  • 62
  • 121
0
votes
0 answers

Start NSURLConnection in a loop

I am making multiple calls to server, I am using for loop for it for(int i = 0; i
Ranjit
  • 4,576
  • 11
  • 62
  • 121
0
votes
2 answers

Synchronous downloading with NSURLConnection and progress callback?

I'm trying to implement synchronous downloading with progress callback with NSURLConnection. When [connection start] is invoked, nothing happens - delegate callback methods are not just invoked (i'm testing on OSX in XCTestCase). What's wrong? //…
4ntoine
  • 19,816
  • 21
  • 96
  • 220
0
votes
0 answers

How to get actual web page size (in Byte or KB or MB) of a Loaded UIWebView?

I am working on a browser application and i want to track how much internet data is consumed when a web page is load. I am using this method to calculate data received by iOS application. - (void)connectionDidFinishLoading:(NSURLConnection…
Deepak
  • 1,421
  • 1
  • 16
  • 20
0
votes
1 answer

NSURLConnectionDelegate methods not called using AFNetworking code

I am using AFNetworking ,the code is working well but none of the delegate nethods of NSURLConnectionDelegate methods are being called after making successful connection. I have declared in my interface file as delegate of NSURLConnection too.But…
0
votes
2 answers

What is a better way to deal with data after an async call using NSURLConnection?

This is the current logic that I'm using to populate a table view with NSURLConnection. It doesn't seem elegant to me. Table View Controller's viewDidLoad method calls "sendConnection" method in my api wrapper class with the URL string as a…
0
votes
1 answer

NSURLConnectionDataDelegate just work in App Delegate

(in MAC OSX- Xcode) I tried to read file by FTP using NSURLConnection class, it is work fine just if my code in main Application Delegate class (AppDelegate) but if i using it outside (another .h .m files) the connection delegate not called. Any…
0
votes
1 answer

How to Validate SSL certificate

I want to validate SSL certificate in my app and i am using AFNetworking for validating certificate. For SSL validation i am using openssl,libcrypto.a and libssl.a My problem is that validation process was complete with NSURLConnection delegate…
0
votes
0 answers

NSURLConnection delegate methods not giving the response immediately

Hi in my application I am using NSURLConnection delegate metods to get a response from the server.Here what is happening is when ever I send a request to the server for the first time I am getting response immediately.After that first request if I…
Naresh
  • 363
  • 1
  • 18
0
votes
5 answers

Creating a Post Request in iOS

To begin with, I have looked up how to make a post request and have read multiple thread and docs about how to create one, however my data doesn't seem to be working. I have two fields say x and html that i want to make to the call callname. The GET…
CoderNinja
  • 571
  • 3
  • 7
  • 20
0
votes
2 answers

How to get response from static library in ios

In my application I am using one static library. In that library I implemented code for establish a connection with the server. For server interaction I used NSURLSession but it's delaying the UI response to avoid it I have started using…
Naresh
  • 363
  • 1
  • 18
0
votes
1 answer

Redirected URL in UIWebview not loading images

I have a problem where I load a URL in UIWebView. The URL redirects to a different location. I handle this redirect with the following code: - (NSURLRequest *)connection:(NSURLConnection *)inConnection willSendRequest:(NSURLRequest *)inRequest…
0
votes
2 answers

Why does NSURLConnection delegate error method get called once connection is finished with

I am initialising up an NSURLConnection with a request and have both didFailWithError and didReceiveData setup. The application will successfully use both these methods for any situations wear I want it to use them but if you switch to offline mode…
Kurtis
  • 1,172
  • 2
  • 12
  • 20
0
votes
1 answer

connection release method in connectionDidFinishLoading, causes error

testing request and getting the response example in official apple developer site. https://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/URLLoadingSystem/Tasks/UsingNSURLConnection.html using [connection release] method in…
Zen Of Kursat
  • 2,672
  • 1
  • 31
  • 47