How do I detect when someone shakes an iPhone?
In 3.0, there’s now an easier way – hook into the new motion events. The main trick is that you need to have some UIView (not UIViewController) that you want as firstResponder to receive the shake event messages. Here’s the code that you can use in any UIView to get shake events: @implementation ShakingView – … Read more