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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T01:08:23+00:00 2026-06-04T01:08:23+00:00

In my app, I have noticed that it will run slowly for the first

  • 0

In my app, I have noticed that it will run slowly for the first few seconds of running because objects are still being initialized, drawn to the screen, etc. How do I load these objects and create a bar to show the progress of the loading?

  • 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-04T01:08:25+00:00Added an answer on June 4, 2026 at 1:08 am

    You can show a loading screen.
    You can use different threads and detach threads.
    Alternatively you can use a UIActivityIndicatorView or UIProgressBar to show that currently loading is on.

    UIActivityIndicatorView basically is like when you start up your mac. A spinning circle.
    UIProgressBar is a empty bar that fills up with blue as the loading increases.

    A UIProgressBar has a variable called progress while you just send startAnimating and stopAnimating messages to a UIActivityIndicator

    To read more about these two, check the links below:

    Progress Bar Apple Documentation

    Progress Bar Image

    Activity Indicator Apple Documentation

    Activity Indicator GIF Image

    UPDATE TO YOUR QUESTION ON OTHER ANSWER:

    What are you loading for? Does the class/object you are loading for have a delegate method? If you are saying

    still being initialized and drawn to the screen

    Considering object below is one of your objects
    You could say

    if (object) {
    // saying just 'object' asks if it is non-zero/valid
    }
    

    Also to check if DRAWN to the screen try:

        if([self.view.subviews containsObject:object]) 
    

    or

    if([object superview] == self.view)
    

    or the method

    -(BOOL)isDescendantOfView:(UIView *)view;
    

    Return Value YES if the receiver is an immediate or distant subview of view or if view is the receiver itself; otherwise NO.

    ALSO: when i say self.view, it doesn’t have to be self, since loading view might be a different view. You could make an object to that other class and call that class instead of self. Like: if([otherClass.object superview] == otherClass.view)

    You could also make an update method in the other class so you could say:

    if([otherClass finishedLoading])
    

    and then have this as the update method:

    - (BOOL)finishedLoading {
    return ([object superview] == self.view)
    }
    

    This is a lot to take in! Any other questions?

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

Sidebar

Related Questions

I have a google maps app that will resize the map div if its
i have developed an application that will basically run on all versions of the
I have noticed an app that I recently downloaded has their adview set up
I have a little app that have by default youtube as homepage. You can
I have app in which i have recorded sound files i want that i
I have an app that have several views. In one view I would like
I have to develop web2py app and have to use Facebook sdk in that.
I have a couple of stored procedures on SQL Server 2005 that I've noticed
I have an app that is in portrait mode, but some screens should have
I have a data gathering app (terrestrial magnetic field strength) that has four phases;

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.