UIWebView finished loading Event

Ploetzeneder picture Ploetzeneder · Nov 2, 2009 · Viewed 38.9k times · Source

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?

Answer

Pascal picture Pascal · Nov 2, 2009

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