微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

在safari中的cordova mac打开url

我使用下面的https://github.com/apache/incubator-cordova-mac来制作mac os x apps,但是看起来我无法得到_blank链接来打开。 如果有人知道这将是伟大的。

答案1) – 没有工作

我把它放在WebViewDelegate.m中 –

UIWebViewNavigationType <是错误

除了createfile和openfile之外,任何windows apis都可以获得文件句柄?

.NET中的窗口句柄可以改变它的值吗?

为什么这个pyd文件不能在某些电脑上导入?

Printwindow发送消息WM_PAINT还是WM_PRINT?

为什么我的性能计数器代码不起作用?

- (BOOL) webView:(WebView*)theWebView shouldStartLoadWithRequest:(NSURLRequest*)request navigationType:(UIWebViewNavigationType)navigationType { //return [self.viewController webView:theWebView shouldStartLoadWithRequest:request navigationType:navigationType]; NSURL *url = [request URL]; // Intercept the external http requests and forward to Safari.app // Otherwise forward to the PhoneGap WebView if ([[url scheme] isEqualToString:@"http"] || [[url scheme] isEqualToString:@"https"] || [[url scheme] isEqualToString:@"itms-apps"]) { [[UIApplication sharedApplication] openURL:url]; return NO; } else { return [self.viewController webView:theWebView shouldStartLoadWithRequest:request navigationType:navigationType]; } }

用Python写入Windows日志

我寻找一些独特的东西来识别一个Windows共享与C#

Windows 10物联网核心 – video打开closures

已经使用相同的参数types定义了名为“InitializeComponent”的成员

从Windowsnetworking位置打开文件

我认为_blank更改是最近的一个,但尚未在iOS中实现。 我目前在AppDelegate.m使用这段本地代码来在Safari中打开外部URL

- (BOOL) webView:(UIWebView*)theWebView shouldStartLoadWithRequest:(NSURLRequest*)request navigationType:(UIWebViewNavigationType)navigationType { //return [self.viewController webView:theWebView shouldStartLoadWithRequest:request navigationType:navigationType]; NSURL *url = [request URL]; // Intercept the external http requests and forward to Safari.app // Otherwise forward to the PhoneGap WebView if ([[url scheme] isEqualToString:@"http"] || [[url scheme] isEqualToString:@"https"] || [[url scheme] isEqualToString:@"itms-apps"]) { [[UIApplication sharedApplication] openURL:url]; return NO; } else { return [self.viewController webView:theWebView shouldStartLoadWithRequest:request navigationType:navigationType]; } }

工作在2.3.0 oO'

- (BOOL) webView:(UIWebView*)theWebView shouldStartLoadWithRequest:(NSURLRequest*)request navigationType:(UIWebViewNavigationType)navigationType{ //return [self.viewController webView:theWebView shouldStartLoadWithRequest:request navigationType:navigationType]; NSURL *url = [request URL]; // Intercept the external http requests and forward to Safari.app // Otherwise forward to the PhoneGap WebView if ([[url scheme] isEqualToString:@"http"] || [[url scheme] isEqualToString:@"https"] || [[url scheme] isEqualToString:@"itms-apps"]) { [[UIApplication sharedApplication] openURL:url]; return NO; } else { return [ super webView:theWebView shouldStartLoadWithRequest:request navigationType:navigationType ]; }}

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐