gpt4 book ai didi

ios - 在新 Apple Watch Series 2 WatchOS 3 中使用 GPS

转载 作者:搜寻专家 更新时间:2023-10-31 22:20:25 24 4
gpt4 key购买 nike

Apple 最近发布了内置新 GPS 芯片的 Apple Watch Series 2。我想知道 Apple 是否已经发布了这个新硬件的公共(public) API。也许我们期待看到类似于 CLLocation 的东西。最坏的情况是我们必须等到 WatchOS 4。有人知道在新的 Apple Watch 中使用 GPS 吗?

最佳答案

只需使用 Core Location .

据我所知,无论您是在系列 1 还是系列 2 设备上运行,都可以编写相同的代码。如果您使用的是系列 1(或“系列 0”原始 watch ),定位服务使用从配对的 iOS 设备的 GPS 转发的数据,而在系列 2 上,您从配对的 iOS 设备或 watch 本身获取数据(取决于配对的 iOS 设备是与用户在一起还是被遗忘),但切换对您的应用程序是透明的。

关于ios - 在新 Apple Watch Series 2 WatchOS 3 中使用 GPS,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39579628/

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