标签: swift apple-watch core-motion pedometer
我需要在我的iOS应用程序中从Apple Watch获取步骤数据。看起来它们出现在默认的“运行状况”应用程序中,但是CMPedometer无法获取它。我使用swift pedometer.queryPedometerData(from: fromDate, to: toDate, withHandler: 的{{1}}方法,但是没有返回任何步骤。来自iOS设备的步骤正确显示
swift pedometer.queryPedometerData(from: fromDate, to: toDate, withHandler: