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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T11:58:56+00:00 2026-05-26T11:58:56+00:00

In my iPhone app how could I create a UIAlert (or some other indicator)

  • 0

In my iPhone app how could I create a UIAlert (or some other indicator) that highlights to the user that the data is loading such that:

  1. starts as soon as the user selects a cell in UITableViewController A, and
  2. ends after UITableViewController B is actually displayed

The rough flow I have would be then:

  • Controller A
    • User selects row
    • Alert starts
    • Data loaded in preparation for controller B
  • Controller B
    • in say viewDidLoad turn off the loading indicator

Need to find a way to do this such that the “loading” indicator used is actually displayed on the current view straight away…

  • 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-26T11:58:57+00:00Added an answer on May 26, 2026 at 11:58 am

    The way I personally would go about this would be to first assign an alert in the header file:

    UIAlertView *alert;
    

    then create and present the alert in the tableView:didSelectRowAtIndexPath: method.

    alert = [[UIAlertView alloc] init....];
    [alert show];
    // start the loading process for your data to push to the next view
    

    Then to dismiss the view, simply do so in your viewWillDisappear:animated: method with a call like the following:

    [alert dismissWithClickedButtonIndex:0 animated:YES];
    

    This should ensure that the alert is dismissed before the next view is presented. I hope this helps. If you have any questions, I’d be happy to describe in more detail

    EDIT: in order to dismiss the alert from a different view, you will have to create a method where you create the alert to dismiss it, import the header into the view which it is pushing to, find the parent view from the child, then dismiss when you want. I will explain in detail below. So first, create a method to dismiss the view from the parent, which I will just refer to as Parent

    - (void)dismissAlert {
        [alert dismissAlertWithClickedButtonIndex:0 animated:YES];
    }
    

    In the view which you push to, be sure to put #import "Parent.h" at the top of the implementation file.

    Now it’s just a matter of finding the view and calling the method. You can change where this is called, but for example purposes, I’m just going to start a timer in the viewDidAppear: method in the Child file and go from there.

    - (void)viewDidAppear:(BOOL)animated {
        [NSTimer scheduledTimerWithTimeInterval:0.5 target:self selector:@selector(dismiss) userInfo:nil repeats:NO];
    }
    

    Then create the dismiss method

    - (void)dismiss {
        // find the Parent view, which is most likely the top view in the navigation stack
        // self.parentViewController will be the navigationController
        // calling childViewControllers gets the navigation stack, so we get the view from there
        [(Parent *)[[self.parentViewController childViewControllers] objectAtIndex:0] dismissAlert];
    }
    

    I have tested this and it does work, so hopefully it does the trick for you. You can change the time interval to your pleasing. Considering I don’t know the heirarchy of your app, it’s hard to say where the Parent view is located with respect to the Child, but you can play around to find it if the above isn’t it.

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

Sidebar

Related Questions

Could I create an iPhone app that replaces/modifies the default clock screen saver and
i need a multilingual coredata db in my iphone app. I could create different
In an iPhone app, the User can create Items - each Item needs to
how could I create this menu for my iphone app?
I've been writing an iPhone app that could send JSON to a PHP file
I am developing an iPhone app and would like to create some sort of
I would like to develop a MS paint like app for the iPhone. Could
The iPhone app that I am working on requires GET calls to a 3rd
My iphone app called Google Local Search(non javascript version) to behave some search business.
The iPhone app that I released is a wireless game controller, it translates touches

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.