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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T03:55:13+00:00 2026-05-28T03:55:13+00:00

Using below code, I am trying to show a uialertview, it is being shown

  • 0

Using below code, I am trying to show a uialertview, it is being shown properly and also my application is going properly to next screen through [self getlogin]; method. The issue I am facing is that alert view does not gets disappear when another view is loaded, as when the [self getLogin] is called alert view should disappear itself and new screen should be shown, while it is not.

Also I want to add a progress bar above the alert view cancel button, How can I do that

    if ((user != nil) && (passwd != nil)) {

    NSLog(@"Data found");        

    UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Signing in..." message:nil delegate:nil cancelButtonTitle:@"Cancel" otherButtonTitles:nil ];

    [alert show];

    [self getLogin];
}else {

    NSLog(@"No data saved");
}

I am using this alert view on a login screen, if username and password is saved then that alert view will appear and starts signing in automatically through [self getLogin]; and when it gets logged on alert view will be disappear and new screen will be shown, and if while auto signing in user clicks cancel button user will be at login screen

  • 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-28T03:55:13+00:00Added an answer on May 28, 2026 at 3:55 am

    To dismiss an alert view you can use - (void)dismissWithClickedButtonIndex:(NSInteger)buttonIndex animated:(BOOL)animated and you can add a progress bar simply by adding a subview to the UIAlertView. But you should rethink if a UIAlertView is really the right view for this. It sound strange, a alert view that disappears on int’s own and still has a cancel button. User might be confused when it disappears.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to create a custom drop down and using the code below it
I'm trying to draw the pages of a PDF using the code below. Some
Afternoon all, Using the code below I'm trying to load what is render by
In past, I am using Listview and using below code can show a particular
I'm using jqgrid 3.8.2, I'm trying to use below code to reload data from
iam trying to show image preview before upload, for that i am using code
I am trying to pass the XML code below, in the first instance using
I am trying to embed Facebook video using the code below: <object width=400 height=224
i am using below code to change the the font type of text view.
Currently i'm using below code which works well. $(#topperAtBaseLevel:visible, #lowerAtBaseLevel:visible, #midAtBaseLevel).hide(); any optimised code?

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.