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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T17:29:37+00:00 2026-05-31T17:29:37+00:00

im working with core-data for the first time, and my app is handling a

  • 0

im working with core-data for the first time, and my app is handling a lot of data (1000+ managedobjects at least), so it takes a while to load certain views.

example: i have a view that basically holds a tableview that contains information about specific core-data entities. the view will hold between 10 and 100+ items (grouped), and i have loading times to a couple of seconds. basically that is not really a problem, but i suspect users to get irritated when a view is loading without any information until it shows.

i load my data in the ‘viewWillAppear’ because it has to be reloaded every time due to change.

question: how can i display a loading screen (progress indicator) while the view loads? it does not have to be fancy, just maybe a unicolor screen with one of the standard progress indicators?

any inputs?

Edit: I managed to drop the loadingtime from apprx 3 seconds to a few milliseconds so i wont need it in this particular project, but anyways i think its a question worth asking =) so im still very interested in ideas =)

i already read this tutorial: Using AlertView For Progress Indication but i was not able to adapt it in a little testproject to use during view transitions.

sebastian

  • 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-31T17:29:39+00:00Added an answer on May 31, 2026 at 5:29 pm

    You can set any placeholder view you like in viewWillAppear, then spawn off a background block to load the content. After the content is loaded, you update the screen to show them:

    - (void)viewWillAppear {
        [super viewWillAppear];
    
        [self loadPlaceholderSubview];
    
        dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_BACKGROUND, 0), ^{
            [self loadData];
    
            dispatch_async(dispatch_get_main_queue(), ^{
                if ([self isStillNeeded])
                    [self updateSubviews];
            });
        });
    }   
    

    A few notes:

    • [self isStillNeeded] is needed since the data is being loaded in the background, and the view might no longer be on the screen when the loading is completed (e.g. the user may have navigated away). How do you check this depends on exactly how your application works. In some cases, it may be as simple as checking whether the view still has a superview or window.

    • Make sure any interface update happens on the main thread (hence the dispatch to dispatch_get_main_queue() as this is required by the OS.

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

Sidebar

Related Questions

I'm working on my first app using Core Data and I need to assign
I'm working with Core Data for the first time and this has me stumped.
I'm new to Core Data and I'm working on my first personal iOS app.
I'm working on my first Core Data-backed app and am having trouble figuring out
I'm working on my first Core Data project (on iPhone) and am really liking
I am working on this core data app, and im not exactly shure how
I am working on a simple Core Data app. I have two classes: Client
i'm working on an app with core data with storyboard. the app has uitabbarcontroller
I'm working on a Core Data app (for iPhone 3.0, though I don't think
This is my first time trying to accomplish core data and been having some

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.