Skip to content

Instantly share code, notes, and snippets.

@alanzeino
Created December 23, 2011 05:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alanzeino/1513216 to your computer and use it in GitHub Desktop.
Save alanzeino/1513216 to your computer and use it in GitHub Desktop.
Zoom and Fade effect on UIView
// where 'syncLabel' is a UILabel
[UIView animateWithDuration:0.2
delay:0.0
options:0
animations:^{
self.syncLabel.alpha = 0.2;
self.syncLabel.transform = CGAffineTransformMakeScale(3.0,3.0);
}
completion:^(BOOL finished) {
self.syncLabel.alpha = 1.0;
self.syncLabel.transform = CGAffineTransformMakeScale(1.0,1.0);
self.syncLabel.text = [NSString stringWithFormat:@"%d", 0];
}];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment