I have a web service used by my iPhone application.The application accesses the webservice to get authenticated.
My question is how to intimate the user when the server doesn’t sends any response when it is called.
ie..The control doesn’t comes to
-(void) connection:(NSURLConnection *)connection didReceiveResponse:(NSURLResponse *) response
{
}
When you start the login, also start an
NSTimerto call a “no response” handler. Something like this:Now you need a
failLoginmethod to kill theloginUrlConnection. Be sure to invalidate the timer when a response does come in: