Re:Development with the iPhone SDK - Initial Observations
by rob_rasmussen on Thursday June 25, 2009 @12:12PM
(#673906)
There's a new api for shake gestures in 3.0, your firstResponder needs to implement motion[Began|Cancelled|Ended]:withEvent. Works fine in the simulator.
As an aside,in the 3.0 version of the simulator there is now an option for sending a shake gesture but in the one app I have that responds to shakes it didn't work no matter how low I set the threshold.
Edit:looking at the shake gesture it seems that the method accelerometer:accelerometer didAccelerate does not get called (which is the method my app is using to detect shakes) when you send a shake gesture to the simulator so I'm not sure what the shake gesture actually does in 3.0.