gpt4 book ai didi

ios7 - 哪些 iOS 设备支持 CMStepCounter?

转载 作者:行者123 更新时间:2023-12-02 04:44:09 25 4
gpt4 key购买 nike

Apple 在新款 iPhone 5s 中为 M7 添加了步数支持。这是关于 isStepCountingAvailable 的文档

isStepCountingAvailable Returns a Boolean indicating whether step-counting support is available on the current device.

  • (BOOL)isStepCountingAvailable Return Value YES if step-counting support is available or NO if it is not.

Discussion Step-counting support is not available on all iOS devices. Use this method to determine if support is available on the current device.

Availability Available in iOS 7.0 and later. Declared In CMStepCounter#

当我运行时:

BOOL isUsersHardwareCompatibleWithPedometerApp = [CMStepCounter isStepCountingAvailable];

在我的 5s 上,isUsersHardwareCompatibleWithPedometerApp 的值为 YES

对于 Core Motion 的 CMStepCounter 类方法 + isStepCountingAvailable,哪些设备会返回 YES?我还可以限制返回 NO 的设备从 AppStore 下载我的应用程序吗?或者是否有一个很好的代理来限制用户下载我的应用程序,例如前置摄像头是一个很好的代理来确定用户是否至少有 512mb 的内存?

最佳答案

我没有可用于测试的设备,但流行的 Pedometer++ 应用程序的创建者 @_DavidSmith 已确定新的 iPad Air/rMini 不提供步数数据。

After some investigation the iPad Air/rMini look to support activity categorization but not step counting w/ its M7. Which makes sense to me

https://twitter.com/_DavidSmith/status/404252937821900801

到目前为止,iPhone 5s 是唯一支持计步数据的设备。

关于ios7 - 哪些 iOS 设备支持 CMStepCounter?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20166556/

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