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

查看:97
本文介绍了在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天全站免登陆