How to play an audio file ONLY while user is shaking iPhone?

Posted by wgpubs on Stack Overflow See other posts from Stack Overflow or by wgpubs
Published on 2010-04-03T06:47:09Z Indexed on 2010/04/03 6:53 UTC
Read the original article Hit count: 289

Filed under:
|
|
|

I've read a number of posts regarding how to detect shakes but I'm not sure:

  1. What is currently the best way to detect shakes?

    • and -
  2. How to play an audio file ONLY while the user is shaking the iPhone?

Anyone have an advice, examples/tutorials or sample code?

Thanks

© Stack Overflow or respective owner

Related posts about iphone

Related posts about objective-c