繁体   English   中英

从uiwebview返回应用程序页面

[英]Back application page, from uiwebview

我称之为:

    NSString *authLink = @"https://plus.google.com/share?url=http://stackoverflow.com";
NSURL *url = [NSURL URLWithString:authLink];    

[vkWebView loadRequest:[NSURLRequest requestWithURL:url]];

发送文字后,UIWebView加载了我的google +墙。 如何隐藏Webview并返回我的应用程序?

您可以使用webView:shouldStartLoadWithRequest:navigationType:委托方法来查看UIWebView尝试加载的URL。

有关详细信息,请参见http://developer.apple.com/library/ios/#documentation/uikit/reference/UIWebViewDelegate_Protocol/Reference/Reference.html#//apple_ref/occ/intf/UIWebViewDelegate

当您获得google +墙的网址时,只需隐藏/停止UIWebView

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM