Search
Goodies

Social Networks
Designs I Like
« Apple Tablet Rumors and iPhone Apps | Main | UIView animations, what am I missing ?? »
Thursday
May212009

At least I got it (flashing effect)

So, here is the deal for creating a very simple animation that looks like a flashing effect.


theFlashView.alpha = 0.0f;
[[UIApplication sharedApplication].keyWindow addSubview:theFlashView];
[UIView beginAnimations:@"show" context:NULL];
[UIView setAnimationDuration:0.4f];
[UIView setAnimationCurve:UIViewAnimationCurveEaseIn];
[UIView setAnimationDelegate:self];
theFlashView.alpha = 1.0f;
[UIView commitAnimations];

[UIView beginAnimations:@"show" context:NULL];
[UIView setAnimationDuration:0.4f];
[UIView setAnimationCurve:UIViewAnimationCurveEaseIn];
[UIView setAnimationDelegate:self];

theFlashView.alpha = 0.0f;

[UIView commitAnimations];

Reader Comments

There are no comments for this journal entry. To create a new comment, use the form below.

PostPost a New Comment

Enter your information below to add a new comment.

My response is on my own website »
Author Email (optional):
Author URL (optional):
Post:
 
Some HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>