簡體   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