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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T04:24:11+00:00 2026-05-29T04:24:11+00:00

I have a rather annoying problem. I have a table view with blog entries

  • 0

I have a rather annoying problem. I have a table view with blog entries (collected from a RSS feed). When the view loads, I apply a loading screen to the blogViews view via -addSubview:. And in -viewDidAppear: I start to load the data. This works and all with the iOS 5 simulator and on my iPhone 4 with iOS 5.0.1.

But when I do it on the 4.3 simulator, the loading screen doesn’t appear. The screen is locked on the previous screen (another tableView) until the load is finished.

The problem is, of course, the loading shouldn’t start until the view has appeared. To exemplify: When I click the tab bar button to open the blog, the load starts (which is in -vievDidAppear:), and when the load is finished, the screen appears – it should be the other way around! This is weird, why does it do it like that on 4.3 and not 5?

Should I use -viewWillUnload method in the first table View and apply a loading Screen? That means that there will always be a loading screen (for a flash of a second) when I unload it when there is no need of a loading screen.

(By loading screen I mean an UIImageView initiated with an image, and an activityIndicator on top)

Thanks for any input!

  • 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-29T04:24:13+00:00Added an answer on May 29, 2026 at 4:24 am

    As Mark points out, your problem is related to blocking the main thread while performing a long operation that should in fact be performed on the background.
    If you do so, it shouldn’t matter when viewDidAppear: is called, since you won’t be blocking the main thread while performing the loading.

    You could solve this performing your loading operation on the background and then going back to the main thread to remove the loading indicator. You can do it easily with GCD:

    - (void)viewDidAppear:(BOOL)animated 
    {
        // ...
        dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT,
                                                (unsigned long)NULL), ^(void) {
            // Perform your time consuming operation, eg. load your blog entry
            dispatch_async(dispatch_get_main_queue(), ^{
                // remove the loading screen and set your blog's data to UI components
            });
        });
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Im having rather an annoying problem. I have a class called Person and a
I have a rather annoying issue here I can't get my CheckBox CheckedChange event
I have a rather annoying issue that I solved using a simple recursive method
I have a seriously annoying problem. My company uses castor to marshall and unmarshall
I have a very annoying problem with Struts. The input page is located under
I've got into a rather simple, yet annoying problem. I'm trying to create a
I have a problem with IIS Express & it's annoying the hell out of
I have a rather annoying bug in a program I'm writing which only ever
I have run into a rather odd problem, my app crashes if I try
I have rather large input XML files that must be converted to a given

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.