el desarrollo del iPhone ..need al texto de fundido sobre una imagen de fondo
Pregunta
Deseo tener un lable con el texto que aparece y se desvanece poco a poco las una imagen de fondo más. y tienen un lable en la imagen con el texto pero me gustaría que se quede para i segundos y luego se desvanecen gradualy im usando Xcode y utalising constructor de interfaces. gracias
Solución
Bueno, si usted tiene un UIImage y UILabel un enlace desde el Interface Builder, coloque el siguiente en el método viewdidload:
:
// Starting state
myLabel.alpha=0.0;
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:1.0];
// Ending state
myLabel.alpha=1.0;
[UIView commitAnimations];
// Run another function to fade out after a second
[self performSelector:@selector(fadeOut:) withObject:sender afterDelay:1.0];
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow