Skip to content

Instantly share code, notes, and snippets.

@JigarM
Created January 28, 2015 08:11
Show Gist options
  • Save JigarM/0fe0ba27d25d51bdc221 to your computer and use it in GitHub Desktop.
Save JigarM/0fe0ba27d25d51bdc221 to your computer and use it in GitHub Desktop.
iOS / iPhone: Fade and Zoom in UIView / UIButton animation
- (IBAction)locationPressed:(id)sender {
//[self contactWithBusinessPersonClicked:nil];
//button.alpha = 0.0f;
self.greenHeader.transform = CGAffineTransformMakeScale(0.1,0.1);
[UIView beginAnimations:@"fadeInNewView" context:NULL];
[UIView setAnimationDuration:1.0];
self.greenHeader.transform = CGAffineTransformMakeScale(1,1);
self.greenHeader.alpha = 1.0f;
[UIView commitAnimations];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment