pragma mark -- 拦截webview用户触击了一个链接- (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType
{//判断是否是单击if (navigationType == UIWebViewNavigationTypeLinkClicked){NSString *url = [request.URL absoluteString];//拦截链接跳转到货源圈的动态详情 if ([url rangeOfString:@"http:"].location != NSNotFound){//跳转到你想跳转的页面return NO; //返回NO,此页面的链接点击不会继续执行,只会执行跳转到你想跳转的页面}}return YES;
}