开发者

UIAccelerometer Stop Problem

How to Detect UIAccelerometer stop event when user 开发者_如何学Cstop moving the iPhone. So how to detect the stopping of moving the phone


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜