gpt4 book ai didi

c# - 可以让 UIWebView 内容中的 html 按钮加载新的 ViewController 吗?

转载 作者:塔克拉玛干 更新时间:2023-11-02 08:07:44 26 4
gpt4 key购买 nike

我正在开发一个单触摸应用程序,需要一个 UIWebView 占据整个屏幕(不显示导航 Controller ),但 WebView 内容上有一个按钮能够加载新的 ViewController做条形码扫描。我不太确定如何通过按钮位于实际 HTML 内容而不是 native 端来实现这一点。这可能吗?

最佳答案

Is this even possible?

应该是因为它听起来类似于:response UIWebView click action to call up native code page

除了您将使用 MonoTouch/C# 而不是 Objective-C。您可以使用 UIWebViewDelegate 轻松转换代码,或者(更好)使用更像 .NET 的 UIWebView.ShouldStartLoad .

后面的答案中有一个例子:ShouldStartLoad of custom UIWebViewDelegate not being called when UIWebView request starts loading

关于c# - 可以让 UIWebView 内容中的 html 按钮加载新的 ViewController 吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10543990/

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