iOS / iPhone: Fade and Zoom in UIView / UIButton animation


/ Published in: Objective C
Save to your folder(s)

A nice simple UIView animation that smoothly makes a UIView 'grow' out of the page


Copy this code and paste it in your HTML
  1. button.alpha = 0.0f;
  2. cancelButton.transform = CGAffineTransformMakeScale(0.1,0.1);
  3. [UIView beginAnimations:@"fadeInNewView" context:NULL];
  4. [UIView setAnimationDuration:1.0];
  5. cancelButton.transform = CGAffineTransformMakeScale(1,1);
  6. cancelButton.alpha = 1.0f;
  7. [UIView commitAnimations];

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.