gpt4 book ai didi

watchkit - 调用 Apple Watch map 应用程序进行转弯指示

转载 作者:行者123 更新时间:2023-12-02 01:39:50 24 4
gpt4 key购买 nike

我正在开发一个 watch 应用程序,除其他外,它需要将一个人从 A 点带到 B 点。

一种选择是将 map 导航工作委托(delegate)回 iPhone,并处理 watch 和手机之间的消息更新等。

然而,有谁知道是否可以直接从我自己的 watch 应用程序中简单地调用/启动 Apple map 应用程序(在 watch 上)并传递开始/结束坐标的详细信息——以自动启动逐向指示(从苹果 map watch 应用程序)?

最佳答案

第二个选项听起来很合理。根据 WKInterfaceMap 类引用,点击 map 将直接打开 Apple Watch map 应用程序。

引用文档:

A WKInterfaceMap object displays a noninteractive map for the location you specify. Maps must be configured dynamically from your interface controller. Use the methods of the WKInterfaceMap class to specify the visible region of the map and to add any annotations or points of interest. Tapping the map launches the Maps app on the user’s Apple Watch and displays the corresponding location.

引用:https://developer.apple.com/library/prerelease/ios/documentation/WatchKit/Reference/WKInterfaceMap_class/index.html

关于watchkit - 调用 Apple Watch map 应用程序进行转弯指示,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29045217/

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