i want to animate images randomly in grid so i have taken Timer.
This is my code :
id wait = [SKAction waitForDuration:self.initialTimerValue / 1000];
id run = [SKAction runBlock:^{
//My Custom Method
}];
[self runAction:[SKAction repeatActionForever:[SKAction sequence:@[wait, run]]]];
i want to disable timer on Touch Event,how to invalidate timer ? Can you please Help ?