Skip to content

Instantly share code, notes, and snippets.

@minsOne
Created June 17, 2014 06:21
Show Gist options
  • Select an option

  • Save minsOne/2a8dadb1ebc49050ab18 to your computer and use it in GitHub Desktop.

Select an option

Save minsOne/2a8dadb1ebc49050ab18 to your computer and use it in GitHub Desktop.
UIButton 클릭시 커졌다 작아지는 애니메이션 효과
UIButton *button = (UIButton *)sender;
button.transform = CGAffineTransformMakeScale(1.2, 1.2);
[UIView animateWithDuration:0.2 animations:^{
button.transform = CGAffineTransformMakeScale(1.0, 1.0);
} completion:^(BOOL finished) {
}];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment