简体   繁体   English

iOS WebView PHP网页消息到应用程序?

[英]IOS WebView PHP Web Page Message to App?

I have an IOS App that, among other things, connects to a web server (that I control, running PHP), and I am trying to detect when the execution of the PHP code is complete. 我有一个IOS应用程序,除其他外,该应用程序连接到Web服务器(由我控制,运行PHP),并且我试图检测何时完成PHP代码。 The page is called back a few times and the web page connects to some other web pages (that I don't control) so I can't just use webViewDidFinishLoad. 该页面被回调了几次,并且该网页连接到其他一些网页(我无法控制),所以我不能只使用webViewDidFinishLoad。

Is there some way for the IOS app to receive a message from the PHP application that is being called from the UIWebView? IOS应用程序是否可以通过某种方式从UIWebView调用的PHP应用程序接收消息?

假设您的网页“知道” PHP代码何时完成,您可以尝试按此链接中所述将其传达给应用程序

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

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