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 8521455
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T06:49:48+00:00 2026-06-11T06:49:48+00:00

I have 2 text views in an iOS app for updating a users password.

  • 0

I have 2 text views in an iOS app for updating a users password. I am using a RESTful web service to persist the data to a remote database after a user clicks a confirmation button.

If something goes wrong in transmission or if the input data fails validation on the server side, how do I communicate this to the user?

I don’t want to keep the user waiting while this timely process goes on. I want to make the service asynchronous and alert the user of the status even after they have clicked into another view.

How would I accomplish this?

Thanks!

  • 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-06-11T06:49:50+00:00Added an answer on June 11, 2026 at 6:49 am

    Set the request delegate to be your UIApplication delegate

    In the case of using ASIHTTPRequest, set a userInfo dictionary with your failure message

    ASIHTTPRequest *request = [ASIHTTPRequest requestWithURL:@""];
    [request setUserInfo:[NSDictionary dictionaryWithObject:@"Password reset failed" forKey:@"failureAlertMessage"];
    [request setDelegate:[[UIApplication sharedApplication] delegate]];
    

    Conform your UIApplication delegate to the request delegate protocol (for example, ASIHTTPRequestDelegate)

    In the UIApplication delegate, use the information contained in the request to show an error message

    - (void)requestFailed:(ASIHTTPRequest *)request
    {
        if([[request userInfo] objectForKey:@"failureAlertMessage"]){
            //Do the alert
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

in an iOS app I have to display a list of text items that
I have a web app for iOS devices. I have a pesky link that
One of the views of my iOS app contains a quite long text inside
I have an app that allows users to save and open text files. Saving
I have some text views in an linear layout in my android application. Next
I was implementing an android FFT guitar tuner. Here, I have 2 text views,
Here is the situation, i have a widget containing two text views and i
I have these Views on which I add UILabels as text, The Views can
I have this code in PHP writing views to a text-file and just increasing
I have notes attribute in Product model with text something, something else. In views

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.