WKInterfaceMap 禁用触发原生 Apple Watch 地图

WKInterfaceMap disable trigger to native Apple Watch Map

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

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

非常感谢。

不确定谁说这是不可能的,但你可以禁用水龙头,但你必须使用故事板。只需取消选中属性检查器下的 Enabled 复选框,地图将不会被启用。

根据 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.