0

– webView:shouldStartLoadWithRequest:navigationType:在 web 视图中点击超链接触发 ,有什么办法可以做到这一点吗?

4

1 回答 1

0
//WebView will automatically load the hyperlink u need not to do anything out there except.
//Inherit <UIWebViewDelegate> in self;
urwebview.delegate=self;
In self implement delegate method 
- (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType
{
    //Its call back receved whenever ur webview is navigated By clicking on hyperlink
}
于 2012-04-27T09:09:55.477 回答