I'm playing with particle system in iOS using CAEmitterLayer (like in this example) but i can't remove the particles when i want.
I'm trying the following code but it doesn't work:
[self.emitterLayer setLifetime:0];
[self.emitterLayer removeFromSuperlayer];
[self.setEmitterLayer:nil];
Any suggestions? Thanks!