I was wondering if anyone could show me an example of how to implement CMStepCounter. (I've looked at the documentation but am still left a little confused as to how to implemented).
I'm looking to update a UILabel on my View every time a step is taken. I am also looking to let the app continue counting steps when it is closed.
I'm relatively new to iOS to any help would be greatly appreciated :) !
Thanks, Ryan
You should implement it as follows
However note that, sometimes startStepCountingUpdatesToQueue's block will delay updating numberOfSteps.