【发布时间】:2012-05-08 00:10:42
【问题描述】:
– webView:shouldStartLoadWithRequest:navigationType:在web视图中点击超链接触发,有什么办法吗?
【问题讨论】:
标签: objective-c xcode macos cocoa uiwebview
– webView:shouldStartLoadWithRequest:navigationType:在web视图中点击超链接触发,有什么办法吗?
【问题讨论】:
标签: objective-c xcode macos cocoa uiwebview
//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
}
【讨论】: