1
我試圖在外部Safari窗口中打開我的鏈接,但由於某些原因,它不會將鏈接識別爲鏈接。我使用下面的代碼,問題是,它看到我的鏈路作爲UIWebViewNavigationTypeOther將UIWebView中的鏈接看作UIWebViewNavigationTypeOther
-(BOOL) webView:(UIWebView *)inWeb shouldStartLoadWithRequest:(NSURLRequest *)inRequest navigationType:(UIWebViewNavigationType)inType {
if (inType == UIWebViewNavigationTypeLinkClicked) {
[[UIApplication sharedApplication] openURL:[inRequest URL]];
return NO;
}
return YES;
什麼會導致其認爲我的鏈接是一個UIWebViewNavigationTypeOther?
感謝
而鏈接是? – fbernardo 2012-03-13 01:58:11