gpt4 book ai didi

iphone - ios uiwebview 在 shouldstartloadwithrequest 时停止请求

转载 作者:行者123 更新时间:2023-11-28 18:25:27 24 4
gpt4 key购买 nike

我正在接收 shouldstartloadwithrequest 事件,我需要在某些情况下停止请求。如何在 shouldstartloadwithrequest 时停止 uiwebview 请求?谢谢

最佳答案

检查条件,然后在 shouldStartLoadWithRequest 中返回 NO。确保正确设置委托(delegate)并在委托(delegate)类的接口(interface)中包含 UIWebViewDelegate 协议(protocol)。

关于iphone - ios uiwebview 在 shouldstartloadwithrequest 时停止请求,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10960521/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com