I have an iOS Sprite Kit app which has a few nodes moving around and you have to tap on the correct node to get a point. I've used this method:
- (void)touchesBegin:(NSSet *)touches withEvent:(UIEvent *)event {
UITouch *touch = [touches anyObject];
SKNode *targetNode = [self nodeAtPoint:[touch locationInNode:self]];
// Codes to check whether the user tapped the correct nodes goes here.
}
Now I wants to port my app to tvOS. Everything works fine but the touches. But how can you detect touches with it?