ios - 如何在 livecode 8.1x 中捕获 iOS 网络浏览器中的 URL

标签 ios livecode

我对 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/

相关文章:

ios - UITextView 光标/滚动移动问题

ios - 如何在没有 UIDocumentPickerViewController 的情况下访问所有 iCloud 驱动器文件(应用程序容器外部)?

livecode - 您如何在 LiveCode 中动态验证字段输入?

audio - 声音剪辑在LiveCode中不起作用

安卓下拉菜单

ios - "View"显示本地通知操作的选项未在 iOS 模拟器上显示

iphone - NSPersistentStoreDidImportUbiquitousContentChangesNotification 未得到通知

android - ionic 1 onesignal 有没有办法知道从后台打开应用程序到前台或启动应用程序时是否有推送通知

livecode - 如何在livecode中删除字符串中的多个字符

android - MergAndroid Livecode - 如何保存在 Android 的相机胶卷上?