I have to measure continues SHAKE in event into my application. As Accelerometer is deprecated, so I am using CoreMotion. I am using following code into my application.
- (void)motionEnded:(UIEventSubtype)motion withEvent:(UIEvent *)event {
if (event.type == UIEventTypeMotion && event.subtype == UIEventSubtypeMotionShake) {
NSLog(@"Shaking...");
}
}
Its detect the event when I stop the Shake. Is there any way through which I can detect continues shake event ?
Thanks in advance.