tags:

views:

92

answers:

1

Hello All,

How to Detect UIAccelerometer stop event when user stop moving the iPhone.

So how to detect the stopping of moving the phone

+1  A: 

Here's a discussion on how to calculate instant velocity with a certain degree of accuracy. When such instant velocity raises to a value above 0, set a flag, and if after increasing, it will eventually decrease back to 0, if you have the flag set it means that the device did move, and now has stopped.

luvieere