UIWebView禁止点击后跳转

#pragma mark 禁止webview中的链接点击

- (BOOL)webView:(UIWebView*)webView shouldStartLoadWithRequest:(NSURLRequest*)request navigationType:(UIWebViewNavigationType)navigationType {

    if (navigationType == UIWebViewNavigationTypeLinkClicked) {
return NO;
} else {
return YES;
} }

  

上一篇:UITextView -- 基础备忘


下一篇:(五)Spring Boot官网文档学习