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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T20:12:03+00:00 2026-06-07T20:12:03+00:00

I have 2 WebViews in my application. one is loading a youtube video and

  • 0

I have 2 WebViews in my application. one is loading a youtube video and the other is loading an events calendar. I want to show a custom ‘Loading’ image until the data from the web views are done loading.

I am trying

while([youtubeView isLoading]){
        NSLog(@"youtubeVideo is loading");
        [loadingImage setHidden:NO];
    }
    [loadingImage setHidden:YES];

In viewDidLoad but it doesn’t work.

Whats the best way to accomplish what I am trying to achieve?

Cheers, Beers on me.

  • 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-07T20:12:05+00:00Added an answer on June 7, 2026 at 8:12 pm

    Use below method of UIWebViewDelegate. It get called once webView finish loading.

    - (void)webViewDidFinishLoad:(UIWebView *)webView
        {
            if(youtubeView isEqual:webView)
            {
               loadingImage.hidden = YES;
            }
        }
    

    Also note that your class need to conform to UIWebViewDelegate and both your webviews should set delegate equal to object of that class.

    @interface YourViewController : UIViewController <UIWebViewDelegate>
    {
        UIWebView *youtubeView;
    }
    @end
    

    inside method where you create UIWebView youtubeView

    youtubeView.delegate = self;
    

    Beer ?

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

Sidebar

Related Questions

I have an Android application that has one section loading a web page within
i want to show php page in iphone application. I have also used webview
I have an application that uses multiple WebViews. Nowhere do I set the priority
I have an application with tabs that are all webviews. I'm using UIWebViewDelegate so
In an application that has multiple webviews, is there any way to have the
I have a very simple application and I cannot make the WebView to show
I am developing one application, it contains purchasing of products. I am loading the
I am creating a application which have webviews as well as native screens.I have
I have a webview in my application. I want to handle when user copies
I have an application that has a tab widget in it. One of the

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.