ios - 跳转safari取消长按问题
PHP中文网
PHP中文网 2017-04-17 18:01:02
0
1
310
  • (BOOL)webView:(UIWebView )webView shouldStartLoadWithRequest:(NSURLRequest )request navigationType:(UIWebViewNavigationType)navigationType
    {

       
       if ( navigationType == UIWebViewNavigationTypeLinkClicked ) {
          [[UIApplication sharedApplication] openURL:[request URL]];
    
           return NO;
       }
       return YES;
       
       
       调用这个方法来跳转到safari,长按会出现

    ,如何取消长按这个效果。

PHP中文网
PHP中文网

认证高级PHP讲师

reply all(1)
PHPzhong
   [webView stringByEvaluatingJavaScriptFromString:@"document.documentElement.style.webkitTouchCallout = \"none\";"];}
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!