ios7 - 在 iOS 7 的 iphone 模拟器上测试 CoreMotion API(需要 M7)

标签 ios7 core-motion apple-m7

有没有人用模拟器成功测试过任何新的 CoreMotion API?似乎需要 M7 的那些不起作用。我试过在运行 iOS 7 的新模拟器上调用这些函数

(BOOL)isActivityAvailable


(BOOL)isStepCountingAvailable

但两个函数调用都返回 false。

最佳答案

你的电脑没有 M7 那么为什么模拟器会告诉你它在那里呢?

编辑:(直到设备模拟器支持伪造它。)

关于ios7 - 在 iOS 7 的 iphone 模拟器上测试 CoreMotion API(需要 M7),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19258628/

相关文章:

iphone - 我可以在 iOS 4 之前的设备上使用 Core Motion 框架吗?

ios7 - 如何使用 NavigationController 在 iOS7 上隐藏后退按钮标题

ios - NSUserDefaults 在 iOS7 中不保存?

swift - Segue "show detail"在 iOS 7 中不起作用 - Swift

ios - 运动事件在iOS中处于挂起状态

ios - Apple 的 M7 处理器是否支持低功耗 GPS 跟踪?

ios - iOS 模拟器的 “Motion Control” 菜单项有什么作用?

iphone - glReadPixels 仅在 iOS 7 设备上提供黑色图像

augmented-reality - CMMotionData 到 SceneKit SCNNode 方向

iOS 12.2 : CMMotionManager is blocking the main thread