When the player taps the Pause button in my game, I add a Layer over the game with some options in a Menu. If they then tap the "Audio Options" button in the menu, and new Sprite<TargetedTouchDelegate> appears over the current menu.
This new Sprite (over the menu) is receiving and handling the touches, and it's onEnter method looks like this:
- (void)onEnter
{
[self refreshUI];
[[TouchDispatcher sharedDispatcher] addTargetedDelegate:self priority:0 swallowsTouches:YES];
[super onEnter];
}
However, the Menu below this Sprite is still receiving touch events. Shouldn't swallowsTouches:YES prevent anything else from receiving those touch events?