Search code examples
iphoneuiwebviewloading

UIWebView finished loading Event


Is it possible to start an event when an UIWebView (Iphone) has finished loading the URL.

How can I find out, the current URL of the UIWebView?


Solution

  • Yes, that's possible. Use the UIWebViewDelegate protocol and implement the following method in your delegate:

    - (void)webViewDidFinishLoad:(UIWebView *)webView
    

    If you want the URL, you can get the last request using the property request:

    webView.request.URL