Motion Events
To take action when the device is shaken, implement motionBegan:withEvent on the relevant view:
- (void)motionBegan:(UIEventSubtype)motion withEvent:(UIEvent *)event { if (motion == UIEventSubtypeMotionShake) { NSLog(@"Device Shaken!"); } }










