0
– webView:shouldStartLoadWithRequest:navigationType:
在web view中点击超级链接触发器,有没有什么办法可以做到这一点?cocoa:在NSWebView中,点击超级链接触发器,有没有什么办法
– webView:shouldStartLoadWithRequest:navigationType:
在web view中点击超级链接触发器,有没有什么办法可以做到这一点?cocoa:在NSWebView中,点击超级链接触发器,有没有什么办法
//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
}
我当时正在开发Mac应用程序。 – 2012-04-27 09:26:06
NSWebView和UIWebView的用法相同吗? – 2012-04-27 09:26:34
是的,在Mac Appkit中它的NSWebView,在iOS UIKit中它的UIWebView – Allamaprabhu 2012-04-27 09:51:36