Tag Archives: Core Motion

How to access the Step Counter and Pedometer Data in iOS 9


Since iOS 8 we can access data from the motion co-processors in iOS on compatible devices. One of those goodies is a pedometer (or step counter). With this new Core Motion class we can check how far we’ve travelled, how many steps we’ve taken, and even – since iOS 9 – how many flights of stairs we’ve walked up or down.

We can track live data as well as check the last seven days worth of data, both of which is only reliably available on devices with a motion co-processor.

Let’s see how many steps we’ve taken today!

Continue reading