This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//BOUNCE ANIMATION | |
-(void)beginBounceAnimation { | |
self.view.transform = CGAffineTransformScale(CGAffineTransformIdentity, 0.001, 0.001); | |
self.view.alpha = 1.0; | |
[UIView beginAnimations:nil context:nil]; | |
[UIView setAnimationDuration:0.25]; | |
[UIView setAnimationDelegate:self]; | |
[UIView setAnimationDidStopSelector:@selector(bounce1AnimationStopped)]; | |
self.view.transform = CGAffineTransformScale(CGAffineTransformIdentity, 1.1, 1.1); | |
[UIView commitAnimations]; |