Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要实现一个功能,这样我就有一个登录屏幕,它发送一个 http 请求数据包,获取一个 json 响应(一个布尔值和一个路由链接)并打开一个 webview。我已经成功地做到了。但我还需要做的是,当我在 web 视图中单击退出时,我应该回到本机登录屏幕。我该如何实现呢?
检查此回调方法
-(BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType { }
当您单击 webview 中的链接时,您会收到此回调。