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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T13:20:14+00:00 2026-05-24T13:20:14+00:00

I have a setup with three different UIWebViews which loads data from the internet.

  • 0

I have a setup with three different UIWebViews which loads data from the internet. The time it takes for them to finish differs of course and the order they are finishing also.

They start their loading something like this (separate threads…):

- (void)update {
    [spinner startAnimating];
    [self performSelectorInBackground:@selector(webView1) withObject:nil];
    [self performSelectorInBackground:@selector(webView2) withObject:nil];
    [self performSelectorInBackground:@selector(webView3) withObject:nil];
}

And when the first one is finished it stops the spinner:

- (void)webViewDidFinishLoad:(UIWebView *)webView {
    [spinner stopAnimating];
}

I want the spinner to stop when all three UIWebViews are done with their loading. How do I manage that in a simple way?

  • 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-24T13:20:16+00:00Added an answer on May 24, 2026 at 1:20 pm

    This did work (sort of…)

    - (void)webViewDidFinishLoad:(UIWebView *)webView {
        if (!webViewOne.loading && !webViewTwo.loading && !webViewThree.loading)
            [spinner stopAnimating];
    }
    

    But some few times the spinner stops before all three webviews have finished loading. I guess its because the some of my process that should start the webviews hasn’t started the webview yet. Therefore the if-statement could be true anyway if one process is much slower than another one… Hmm, I need some check that my processes are not running. Any ideas?

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

Sidebar

Related Questions

I have three SQL Server databases that a single application retrieves data from. I
I have an UITabBar based iPhone app with 4 different UIWebViews under every tab.
I have been writing a program to ping three different sites and then it
I currently have a NetBeans php project setup to sync from my user directory
I'm using NetBeans 6.5 for developing PHP and I have xdebug setup. Is there
I have setup web dav on windows server 2008. It seems to work fine
I have setup a property and implement INotifyPropertyChanged like so... public event PropertyChangedEventHandler PropertyChanged;
At the moment I have setup a custom ok cancel dialog with a drop
I've created some MbUnit Test Fixtures that have SetUp methods marked with the SetUp
I am trying to implement performance testing on ActiveMQ, so have setup a basic

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.