SpriteKit Gesture Recognizer
问题 Hi I'm trying to use gesture recognizer with my sprite kit game , i wrote this code @interface GameScene() <UIGestureRecognizerDelegate>{ UISwipeGestureRecognizer *swipeGestureLeft; ISwipeGestureRecognizer *swipeGestureRight; } @end @implementation GameScene -(id)initWithSize:(CGSize)size{ if(self = [ super initWithSize:size]){ } return self; } -(void)didMoveToView:(SKView *)view{ swipeGestureLeft = [[UIGestureRecognizer alloc]initWithTarget:self action:@selector(swipeLeft)];