ios - 在 uiwebview 中单击 html 按钮时不会调用 shouldStartLoadWithRequest

标签 ios

我正在 UIWebView 中加载 html 内容。现在,当我单击按钮时,委托(delegate) shouldStartLoadWithRequest 不会被调用。

下面是uiwebview中html按钮的结构。

 input id="proceedInstructions" class="addonBtns" type="button" value="Start" onClick="loadProvider()"

但是,当我单击“开始”按钮时,shouldStartLoadWithRequest 永远不会被调用。请帮忙。

最佳答案

你在设置 UIWebViewDelegate 吗?

关于ios - 在 uiwebview 中单击 html 按钮时不会调用 shouldStartLoadWithRequest,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24821133/

相关文章:

ios - 访问数组中的元素时应用程序崩溃

iphone - subview 显示错误

ios - 在 Google map 中绘制多个标记

ios - 无法隐藏 SearchDisplayCotroller 中 popViewController 之后突然出现的导航栏

ios - 循环快照 .values 是随机的吗?

iOS cordova 允许位置访问 'Always'

ios - 使用 Modal View Controller -> ViewController 设置协议(protocol)

iphone - 通用 UIViewController

ios - 如何更改列表中的 ListStyle

objective-c - 拖动以触发 UIButton