问题描述
我想知道如果任何人都可以就在iPhone5S utilzing的M7芯片及以上点我在正确的方向。
I was wondering if anyone can point me in the right direction with regard to utilzing the M7 chip in the iPhone5S and above.
我想知道,如果它当您使用通用核心运动的API或者是有一个特定的API使用只是自动的使用吗?
I was wondering if it's just automagically used when you use general core motion APIs or is there a specific set of APIs to use?
最后,我在阅读一些文章在网上,它保留一些历史的移动数据指出,任何人都知道如何访问此或任何人可以点我在正确的方向?
Finally I noted whilst reading some articles online that it keeps some historical movement data, anyone know how to access this or can anyone point me in the right direction?
推荐答案
您正在寻找的两大类是<$c$c>CMMotionActivityManager$c$c>和<$c$c>CMMotionActivity$c$c>.首先,您可以查询历史数据和一般的管理运动。第二,您可以访问不同的,更具体的运动类型。
The two main classes you're looking for are CMMotionActivityManager
and CMMotionActivity
. The first lets you query historical data and manage motion in general. The second gives you access to different, more specific types of motion.
这两个类仅可在iOS 7.使用 - [CMMotionActivityManager isActivityAvailable]
来确定运动可先。我还没有发现它的任何文件,但我的猜测是,方法仅仅返回是
在具有M7芯片(或支持运动活动的报告,未来芯片)设备。
These two classes are available only on iOS 7. Use -[CMMotionActivityManager isActivityAvailable]
to determine if motion is available first. I have not found any documentation on it, but my guess is that method will only return YES
on devices that have the M7 chip (or future chips that support motion activity reporting).
这篇关于利用在iPhone5S的M7芯片的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!