ios-WKWebView 拨打电话

-(void)webView:(WKWebView* )webView didStartProvisionalNavigation:(WKNavigation* )navigation
{ NSString *path= [webView.URL absoluteString];
NSString * newPath = [path lowercaseString]; if ([newPath hasPrefix:@"sms:"] || [newPath hasPrefix:@"tel:"]) { UIApplication * app = [UIApplication sharedApplication];
if ([app canOpenURL:[NSURL URLWithString:newPath]]) {
[app openURL:[NSURL URLWithString:newPath]];
}
return;
}}
上一篇:Codeforces | CF1028C 【Rectangles】


下一篇:在 Linux 平台中调试 C/C++ 内存泄漏方法(转)