我正在接收 shouldstartloadwithrequest 事件,我需要在某些情况下停止请求。如何在 shouldstartloadwithrequest 时停止 uiwebview 请求?谢谢
最佳答案
检查条件,然后在 shouldStartLoadWithRequest
中返回 NO
。确保正确设置委托(delegate)并在委托(delegate)类的接口(interface)中包含 UIWebViewDelegate 协议(protocol)。
关于iphone - ios uiwebview 在 shouldstartloadwithrequest 时停止请求,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10960521/