我对 LiveCode 很陌生,我试图为 iOS 构建一个网络浏览器应用程序,它只打开一个特定的域/网站。
我发现在最新的 LiveCode 8.1x 中为 iOS 构建网络浏览器非常简单,但无法弄清楚如何捕获在网页中单击的 URL 并将其发送到默认网络浏览器(如果 URL 不在域中) .
有人知道吗?
最佳答案
当浏览器的 URL 发生变化时,我会检查域。
例如:
on browserDocumentLoadBegin pUrl
#test if domain if https://livecode.com
if char 1 to 20 of pURL is not "https://livecode.com" then
alert "wrong domain"
set the URL of me to "www.livecode.com"
end if
end browserDocumentLoadBegin
关于ios - 如何在 livecode 8.1x 中捕获 iOS 网络浏览器中的 URL,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46314773/