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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T09:11:32+00:00 2026-05-18T09:11:32+00:00

How do I set a delegate for my UIWebView to use webViewDidFinishLoad ?

  • 0

How do I set a delegate for my UIWebView to use webViewDidFinishLoad?

  • 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-18T09:11:32+00:00Added an answer on May 18, 2026 at 9:11 am

    In the interface file indicate that you’re interested:

    @interface SomethingController : UIViewController <UIWebViewDelegate> {
    

    Then in your implementation you’ll add that delegate method:

    - (void)webViewDidFinishLoad:(UIWebView *)webView {
    
        // Do whatever you want here
    
    }
    

    Obviously SomethingController should be your actual controller, and UIViewController is whatever you’re actually implementing.

    This, by the way, is basically how you implement any delegate.

    Edit

    In a window-based app, assuming your UIWebView is in your app delegate, you just add it to the list of delegates, separated by commas, like this:

    @interface YourAppDelegate : NSObject <UIApplicationDelegate, UIWebViewDelegate>
    

    You’ll include your webViewDidFinishLoad in the app delegate’s implementation.

    Edit 2

    Finally, you’ll need to connect your UIWebView to your controller. It’s common to do this in the viewDidLoad method of a UIViewController, with a line like this:

    self.yourWebView.delegate = self;
    

    This tells the UIWebView where it should send messages.

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

Sidebar

Related Questions

In my app delegate I create a UISplitViewController. I set the delegate to be
Throughout my app, I'm getting semantic issue warnings when I set ViewController.delegate = self
My class is set as the delegate of the location manager, and the log
I have 2 UIViewControllers(A,B). A is set as the delegate for B and then
Right now, I have to do this private delegate void set(int obj); //declare the
is it safe to set an event handler (or delegate) AFTER an asynchronous method
Consider a method in delegate Public void findThisMethod(String a,Set b,HashSet c){} So from action
In my app delegate I created a window helpWindow and I set its contents
I can't get why I can't set delegate. I'm using UINavigationController to switch between
Hello! I tried to use a delegate in my app. My project uses ARC

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.