I'm making a game in SpriteKit with Objective-C. I have a class which inherits SKNode:
@interface Card : SKNode
I have then declared SKSpriteNodes inside this class and added them as children:
cardSprite = [SKSpriteNode spriteNodeWithImageNamed:fileName]; //fileName corresponds with an image asset
[self addChild:cardSprite];
I then make a Card object and add it as a child to my main GameScene. I'm wondering how to do touch detection on the SKSpriteNode inside the Card object. Normally I would use a name for each node for touch detection, but that doesn't seem to be working when the name is set from inside the Card object rather than in GameScene.