Posted By

BenClayton on 02/12/11


Tagged


Versions (?)

Who likes this?

4 people have marked this snippet as a favorite

athanhcong
Tintenklecks
cnathan
Rakesh


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


 / Published in: Objective C
 

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

  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  

You need to login to post a comment.