UILabel fade-in fade-out question

Posted by Oscar Peli on Stack Overflow See other posts from Stack Overflow or by Oscar Peli
Published on 2010-04-07T09:45:06Z Indexed on 2010/04/07 9:53 UTC
Read the original article Hit count: 646

Filed under:
|
|
|

Hi there, I got the following code inside an NSTimer selector:

[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:2.0];
[infoLbl setAlpha:0];
[UIView commitAnimations];

[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:2.0];
[infoLbl setAlpha:1];
[UIView commitAnimations];

So I want to implement a simple fade-in/fade-out loop upon a UILabel (infoLbl).

Well, with this code I get only the fade-in step, since the UILabel suddenly disappear, then fades-in.

Some suggestion?

Thanks.

© Stack Overflow or respective owner

Related posts about iphone

Related posts about uilabel