I want to fade out a UIImage in my application, and it works fine on simulator, but I'm getting weird flickering when running on iPhone.
Following is the code I used.
Please help me resolving this problem.
Thanks,
Following is the code I used.
Please help me resolving this problem.
Thanks,
Code:
[messageLabelBadge setImage:badge];
[messageLabelBadge setAlpha:100.0];
[messageLabelBackground setAlpha:100.0];
messageLabel.text = message;
[messageLabel setAlpha:100.0];
[UIView beginAnimations :nilcontext:NULL];
[UIView setAnimationDuration:3];
[messageLabel setAlpha:0];
[messageLabelBackground setAlpha:0];
[messageLabelBadge setAlpha:0];
[UIView commitAnimations];