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