SpriteKIt上的手势识别器需要很长时间才能完成滑动

时间:2015-03-24 18:25:15

标签: ios objective-c sprite-kit

我正在使用GestureRecognizer来检测滑动以转换到新场景。为什么要采取行动需要多长时间?

-(void) handleSwipeRight:( UISwipeGestureRecognizer *) recognizer {
        // do something if the swipe right had exactly 2 fingers involved
        SKScene *sampleScene = [[Right alloc] initWithSize:self.size];
        SKTransition *transition = [SKTransition flipVerticalWithDuration:0.5];
        [self.view presentScene:sampleScene transition:transition];

}

0 个答案:

没有答案