title: Detecting shakes in sprite kit
body: <p>I have a problem with detecting a shake. It's a skscene in the Sprit Kit and I defined the motion detector like this: </p>
  
  <pre><code>- (void)motionBegan:(UIEventSubtype)motion withEvent:(UIEvent *)event{
  
  }
  
  -(void)motionEnded:(UIEventSubtype)motion withEvent:(UIEvent *)event {
  
  NSLog(@"test?");
  
  }
  </code></pre>
  
  <p>Where is my mistake? Do I have to implement it like I had to do it with the UIGestureRecognizer? </p>
  
  <p>Thanks in advance (and sorry for my bad english)
  Julian</p>