开发者

UIAccelerometer Stop Problem

开发者 https://www.devze.com 2022-12-08 01:37 出处:网络
How to Detect UIAccelerometer stop event when user 开发者_如何学Cstop moving the iPhone. So how to detect the stopping of moving the phoneHere\'s a discussion on how to calculate instant velocity with

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

精彩评论

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