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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T06:56:34+00:00 2026-05-27T06:56:34+00:00

i want to show an UIAlertView while the LoginProcess is working OR after the

  • 0

i want to show an UIAlertView while the LoginProcess is working OR after the loginButton action is called. Here is my code:

- (void) btnLogin:(id) sender {

    UIAlertView *alertLogin = [[UIAlertView alloc] initWithTitle:nil message:@"\nLogin in progress, please wait!" delegate:self cancelButtonTitle:nil otherButtonTitles:nil];
    [alertLogin show];

    NSURL *url = [NSURL URLWithString:@"http://www.example.com/login/"];

    ASIFormDataRequest *request = [ASIFormDataRequest requestWithURL:url];

    [request setPostValue:username forKey:@"username"];
    [request setPostValue:password forKey:@"pw"];

    [request startSynchronous];
    [request cancelAuthentication];

    [...]
}
  1. i press the login button.
  2. the screen gets an gray radial overlay

3. the loginprogress is done AND NOW the UIAlertView appears very very shortly.

I want to display the UIView WHILE the login is in progress and not after.
I cant find out why this appears after the progress.
Need help.
Thanks a lot for any suggestions.

  • 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-27T06:56:35+00:00Added an answer on May 27, 2026 at 6:56 am

    In .h of your class

    UIAlertView *alert;
    

    In .m btnLogin Method

        alert = [[[UIAlertView alloc] initWithTitle:@"Login in progress\nPlease Wait..." message:nil delegate:self cancelButtonTitle:nil otherButtonTitles: nil] autorelease];
    

    [alert show];

    UIActivityIndicatorView *indicator = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleWhiteLarge];
    
    // Adjust the indicator so it is up a few pixels from the bottom of the alert
    indicator.center = CGPointMake(alert.bounds.size.width / 2, alert.bounds.size.height - 50);
    [indicator startAnimating];
    [alert addSubview:indicator];
    [indicator release];
    

    In didRecieveData Method of connection, you will write, or if you are parsing, then didEndDocument method of parser, you can do

    [alert dismissWithClickedButtonIndex:0 animated:YES];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a working customCell with tableView.I want to show a UIAlertView on button
I want to show first element that is hidden by jquery. my html code
I want to Show UIAlertView asking Save or Don't save on Back Click to
I want to add string to message of my UIAlertView -(void) errorState:(NSException *) exp
I want to get message when system show UIAlertView so I can pause my
This is my code : self.myAlert = [[[UIAlertView alloc] initWithTitle:@MNB message:@R u want to
Using below code, I am trying to show a uialertview, it is being shown
hii I want show a pop up Dialog box when i click on to
I want to show HTML content inside Flash. Is there some way to do
I want to show a chromeless modal window with a close button in the

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.