title: iPhone execute code during shaking
body: <p>I have the following code:</p>
  
  <pre><code>- (void) motionBegan:(UIEventSubtype)motion withEvent:(UIEvent *)event{
      if (motion == UIEventSubtypeMotionShake){
          NSLog(@"Detected a shake"); }
  }
  </code></pre>
  
  <p>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).</p>
  
  <p>Can you help me with that please?</p>