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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T16:44:09+00:00 2026-06-17T16:44:09+00:00

I am trying to load a web view (called widget) and set an indicator

  • 0

I am trying to load a web view (called widget) and set an indicator (called indicator) to show that the view is loading (the web page is no larger than http://www.google.com). The widget loads fine (I haven’t included that code) but this snippet, which should send startAnimating to a UIActivityIndicatorView is not working (no animation or even appearance). Everything is connected in storyboard and “not loading” is always logged. This makes me think there is something wrong with my use of UIWebView’s loading property.

sleep(2);
[super viewDidLoad];
[indicator setHidesWhenStopped:YES];
if (widget.loading == YES) {
    NSLog(@"loading");
    [indicator startAnimating];
} else {
    NSLog(@"not loading");
    [indicator stopAnimating];
}
[UIApplication sharedApplication].networkActivityIndicatorVisible = NO;

Any thoughts?

Thanks

  • 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-17T16:44:11+00:00Added an answer on June 17, 2026 at 4:44 pm

    Try putting your start and stop animating in the delegate methods for the webview:

    - (void)webViewDidFinishLoad:(UIWebView *)webView {
        [indicator stopAnimating];
    }
    
    - (void)webViewDidStartLoad:(UIWebView *)webView {
        [indicator startAnimating];
    }
    

    Make sure you set the webview’s delegate and are conforming to UIWebViewDelegate in your interface.

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

Sidebar

Related Questions

in my app in a web view page i am trying to load images
I'm trying to implement a web-view web part in sharepoint that will load up
I have one web view and I am trying to load a dynamic page
So I'm trying to load a simple URL (http://www.google.com) into a web view. I
I've been trying to load a specific page on a web browser control that
I'm trying to load a local web page executing: var html = document.open('google.html'); document.documentElement.innerHTML
I am trying to load a mobile version of the web page using a
I am trying to load test a web application that uses SAML for SSO,
I am trying to load web view in to dialog. I am usuing the
i am trying to load some web pages in web view of my android

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.