在 Apple WatchKit 中使用核心位置 [英] Using Core Location in Apple WatchKit

查看:29
本文介绍了在 Apple WatchKit 中使用核心位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在开发 Apple Watch 扩展程序.有谁知道当前位置是由 iPhone 还是 Watch 本身提供的?我找不到任何关于此的信息,我需要画一个指南针指向手表所指向的位置.

I'm currently developing an apple watch extension. Anybody knows if the current location is provided by iPhone or Watch itself? I can't find any information about this and i need to draw a compass pointing where the watch is pointing.

推荐答案

为了做你想做的事,你不需要 CoreLocation,你只需要一个磁力计.

In order to do what you want you don't need CoreLocation you just need a magnetometer.

AFAIK Apple Watch 没有内置.

AFAIK the Apple Watch doesn't have one built in.

它的传感器是...

  • 加速度计
  • 陀螺仪
  • 心率传感器
  • 晴雨表

虽然没有磁力计.

这篇关于在 Apple WatchKit 中使用核心位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆