Shake Detection

Motion events do not use the UIAccelerometer delegate.  The system determines motion events such as shake (by querying the accelerometer itself) and then sends the messages to the firstResponder application. Detecting Shake In Code Shake Start //********** MOTION BEGAN ********** – (void)motionBegan:(UIEventSubtype)motion withEvent:(UIEvent *)event { if (motion == UIEventSubtypeMotionShake) { NSLog(@”shake started”); } } //If […]

Read More