With the current Core Motion API, you can't get an array of every step with its time stamp directly.
But you can use queryActivityStartingFromDate:toDate:toQueue:withHandler:
to get an array of CMMotionActivity
objects. Then use the time stamps to calculate the number of steps by calling queryStepCountStartingFrom:to:toQueue:withHandler:
.
I don't think the M7 processor stores every step with its own time stamp. If you pass 1
as stepCounts
to the method startStepCountingUpdatesToQueue:updateOn:withHandler:
, you'll notice the handler is not executed on every step. Like the document says: The handler block is executed on a best effort basis each time the step count threshold is exceeded.