title: Is it possible to respond to a shake gesture in UIAlertView?
body: <p>I have a <code>UIAlertView</code> which pops up with a message and a single button "Continue". What I would like for is that a Shake Gesture would also call the same code as hitting the continue button. However, I'm not sure if this is possible with the UIAlertView in iOS7 or if I have to create my own custom alert view.</p>
  
  <p>I have tried implementing:</p>
  
  <pre><code>(void)motionEnded:(UIEventSubtype)motion withEvent:(UIEvent *)event { ... }
  </code></pre>
  
  <p>and</p>
  
  <pre><code>canBecomeFirstResponder { return YES; }
  </code></pre>
  
  <p>But while they work normally with the main view set to <code>becomeFirstResponder</code> they don't respond once the <code>UIAlertView</code> pops up. So then, I tried implementing these in a Category for <code>UIAlertView+MotionResponder.h</code> to try to extend <code>UIAlertView</code>, but the <code>motionEnded</code> is not getting called even though canBecomeFirstResponder is correctly returning <code>YES</code>.</p>
  
  <p><strong>So should this work? Or do I have to implement my own alert view?</strong></p>