Detecting shakes in sprite kit
问题 I have a problem with detecting a shake. It's a skscene in the Sprit Kit and I defined the motion detector like this: - (void)motionBegan:(UIEventSubtype)motion withEvent:(UIEvent *)event{ } -(void)motionEnded:(UIEventSubtype)motion withEvent:(UIEvent *)event { NSLog(@"test?"); } Where is my mistake? Do I have to implement it like I had to do it with the UIGestureRecognizer? Thanks in advance (and sorry for my bad english) Julian 回答1: Apparently, you can't detect shake events from a SKScene