sudeepag / SAConfettiView

Confetti! Who doesn't like confetti?
MIT License
1.55k stars 267 forks source link

Confetti doesn't stop #12

Open clrung opened 8 years ago

clrung commented 8 years ago

Hello! I love this effect–great job! I use this pod In my Obj-C app, and when I call

[_confettiView stopConfetti];

The confetti doesn't stop. I tried putting it in viewDidLoad, but it still didn't work. Any ideas? Thank you!

clrung commented 8 years ago

I'll revise; if [_contettiView startConfetti] is called more than once, repeated [_confettiView stopConfetti] calls do not stop the confetti.

clrung commented 8 years ago

This check is necessary because if the confettiView is started more than once, it will never be able to be stopped.