I have been building a SpriteKit game for a while now. Its a card game that allows double-tap on card sprites for specific behaviors. Now that we're in iOS 9, double taps do not work at all on iPhone 6s. Works fine on iOS8, all devices.
In my SKScene
, i'm using the touchesBegan
method to detect taps:
-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {
UITouch *touch = [touches anyObject];
CGPoint touchLocation = [touch locationInNode:self];
if(touch.tapCount==2) {
NSLog(@"double-tap, but not for iPhone 6s");
}
}
Is there anything new with iOS9 or the 6s specifically (3d touch?) that needs to be implemented now for SpriteKit games?
I would like to note that this works fine in the iPhone 6s simulator, but it does not on the actual device.
Also, touch.tapCount
will report 3, 4, 5, 6, 7 etc. taps, but completely skips just the second tap.
According to https://developer.apple.com/library/prerelease/ios/releasenotes/General/RN-iOSSDK-9.1/
So if this problem can be caused by touchMoved.
Ok, so, double taps ARE working, sort of. On iPhone 6s, the game, though reporting 60 fps through
skView.showsFPS = YES;
, is running very laggish. I just discovered that I can get the taps to work if I tap slowly, as in wait one whole second between the first and second tap.Now onto discovering why this game is so slow on this device. Its not even an iOS 9 issue because the game works just fine on my 5s w/ iOS 9.