ios - WKInterfaceMap 禁用触发原生 Apple Watch map

标签 ios watchkit

我研究过这个话题,堆栈说,没有办法处理 map 上的点击事件。

如标题所示,有没有其他方法可以禁用触发器到原生 map ,因为它会降低用户体验并更改它以在点击时再次生成 map ?

非常感谢。

最佳答案

不确定谁说这是不可能的,但你可以禁用水龙头,但你必须使用 Storyboard。只需取消选中 Attribute Inspector 下的 Enabled 复选框, map 将不会被点击启用。

根据 Apple 文档:

A checkbox that indicates whether the map is enabled. When the map is enabled, tapping it launches the Maps app and displays the currently set location.

enter image description here

关于ios - WKInterfaceMap 禁用触发原生 Apple Watch map ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31112432/

相关文章:

ios - 从 Facebook 数据填充我的模型 (<FBGraphUser>)

ios - 存在键盘时快速向上移动 ScrollView

watchkit - 在 WatchKit 中重新加载表

ios - 如何创建/使用共享应用程序组容器作为包含应用程序及其在 ios 中的扩展之间的缓存存储

ios - 错误的顶点在视网膜显示器上移动

ios - 是否可以使用 ObjectMapper 创建 JSON?

iphone - 将文件复制到文档目录导致失败

ios - 在 didReceiveUserInfo 之前调用 TableView 设置

ios - 观察套件 CFBundleVersion

ios - 如何使用 WatchKit API 在 Watch 中输入安全文本?