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

  • Home
  • SEARCH
  • 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 7712451
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T01:38:06+00:00 2026-06-01T01:38:06+00:00

It takes a long to start up the application I write on an iPhone.

  • 0

It takes a long to start up the application I write on an iPhone. I hope to display a waiting progress bar to indicate the percentage of the startup progress. Can anyone help me? I am new to the Development of IOS.

  • 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-01T01:38:07+00:00Added an answer on June 1, 2026 at 1:38 am

    You can’t.
    The application needs to be started before you can show any dynamic content.
    After your first ViewController is loaded you can of course show a progress bar and do loading.
    Before that, you can only show a static image Default.png & Default@2x.png.
    If you delay the heavy loading to after your -[ViewController viewDidLoad]-method is finished you can show any kind of GUI while doing the heavy work.

    Edit:
    This example will detach a new thread in your viewDidLoad and do some heavy work (in this case sleep for 1 second) and update a UIProgressView and log the progress as it sleeps 10 times, incrementing the progressview with 0.1 each time.

    - (void)viewDidLoad
    {
     // .....
       [NSThread detachNewThreadSelector:@selector(workerBee) toTarget:self withObject:nil];
    }
    
    - (void)workerBee
    {
        NSAutoreleasePool* workerPool = [[NSAutoreleasePool alloc] init];
    
        // Put your image loading between this line and [workerpool release]
    
        for (float i = 0; i<1; i+= 0.1)
        {
            [self performSelectorInBackground:@selector(updateProgress:) withObject:[NSNumber numberWithFloat:i]];
            sleep(1000);
        }
        [workerPool release];
    }
    
    - (void)updateProgress:(NSNumber*)number
    {
        NSLog("Progress is now: %@", number);
        [progressView setProgress:[number floatValue]];
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an ASP.Net application that takes an unusually long time to start up
I'm trying to write an application that will allow the user to start long-running
I'm working with an open-source .NET app that takes a long time to startup
I need to capture how long it takes for my application to execute a
I am working in android application.I have one doubt How long it takes to
I've set out to write a method in my C# application which can return
I have an application that takes too long to run, and I want to
Some loading routines in my program takes to long to complete. I want a
I have a program which takes a long time to complete. I would like
At times the get_file_contents takes too long and that hangs the entire script. Is

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.