I have the following code:
- (void) motionBegan:(UIEventSubtype)motion withEvent:(UIEvent *)event{
if (motion == UIEventSubtypeMotionShake){
NSLog(@"Detected a shake"); }
}
This code NSLogs when shake began, or I can implement motionEnded and then it will NSLog when shake ends, but what I want is to execute code DURING shake (progress bar from 0 to 100 while iPhone is shaking).
Can you help me with that please?