How do I detect when someone shakes an iPhone?

Posted by Josh Gagnon on Stack Overflow See other posts from Stack Overflow or by Josh Gagnon
Published on 2008-09-29T20:14:59Z Indexed on 2010/04/21 16:33 UTC
Read the original article Hit count: 263

I want to react when somebody shakes the iPhone. I don't particularly care how they shake it, just that it was waved vigorously about for a split second. Does anyone know how to detect this?

© Stack Overflow or respective owner

Related posts about iphone

Related posts about accelerometer