by Prasanna Vignesh
17. June 2010 12:06
#define kAccelerationThreshold 2.2
//Somewhere in initialization
UIAccelerometer *accel = [UIAccelerometer sharedAccelerometer];
accel.delegate = self;
accel.updateInterval = 1.0f/10.0f;
//Method to detect Shake...
[More]