Skip to content

Instantly share code, notes, and snippets.

@cqa02303
Created March 17, 2010 23:40
Show Gist options
  • Save cqa02303/335870 to your computer and use it in GitHub Desktop.
Save cqa02303/335870 to your computer and use it in GitHub Desktop.
// アニメーションの開始側
// 予めanimationRemainに繰返し回数を入れておいてperformSelectorで呼びます
- (void)continueGadgetAnimating {
animationRemain --;
EasterEggView *image = [[[SnowGadget alloc] initWithImages:self.snowImages.subviews] autorelease];
[self.touchView addSubview:image];
[image startAnimating];
if (animationRemain > 0) {
[self performSelector:@selector(continueGadgetAnimating) withObject:nil afterDelay:0.6f];
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment