Acceleration threshold for shake versus typical hand motion?
What acceleration characterization should be used to d开发者_如何学JAVAifferentiate an intentional single shake-to-do-something shake versus other typical random or unintentional device motions?
Shaking can be detected by the OS itself. There's no need to do this yourself.
More info in this StackOverflow question:
How to use Shake API in iPhone SDK 3.0?
精彩评论