Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3223144
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T16:04:22+00:00 2026-05-17T16:04:22+00:00

I have a web service used by my iPhone application.The application accesses the webservice

  • 0

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
{
}

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T16:04:23+00:00Added an answer on May 17, 2026 at 4:04 pm

    When you start the login, also start an NSTimer to call a “no response” handler. Something like this:

    timeout = [NSDate dateWithTimeIntervalSinceNow:10.0];
    timeoutTimer = [[NSTimer alloc] initWithFireDate:timeout interval:0 target:self selector:@selector(failLogin) userInfo:nil repeats:NO];
    [[NSRunLoop currentRunLoop] addTimer:timeoutTimer forMode:NSDefaultRunLoopMode];
    [loginUrlConnection start];
    

    Now you need a failLogin method to kill the loginUrlConnection. Be sure to invalidate the timer when a response does come in:

    -(void) connection:(NSURLConnection *)connection didReceiveResponse:(NSURLResponse *) response {
       [timeoutTimer invalidate];
       /* Handle response... */
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am new to iPhone application development, i have used the web services and
I have used web service and get the response as the JSON. I want
I have used Apache mina service to write web service for Iphone . I
I have a web service returning some Json stuff to my iPhone application and
I have web service used by about a dozen C# projects and sites. The
I have a web service written in Spring MVC. It can be used by
I want to create tree structure using web service. I have used bottom up
I used to have a web service through which a client could perform DB
I have a web-service, I used Axis2-1.5.0 to access it, but I have two
I have a web service deployed on tomcat hosted on a remote server. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.