I am using cocos2d 2.1 version to code up a simple board game on iOS. The logic requires disabling touch detection on individual layers for a predefined period of time. While disabling touch detection on individual layers works just fine I am having a lot problems re-enabling the touch detection.
I disable the touch detection using touchEnabled property
layer.touchEnabled = NO;
I try later to reverse this using the same property
layer.touchEnabled = YES;
But this does not seem to work at all and none of the tap events are any longer propagated to the layer..
What am I doing wrong here? Is there something I am missing??