Created
January 14, 2017 19:36
-
-
Save JFSene/c5e91883854dba461bb725069516b9a7 to your computer and use it in GitHub Desktop.
Setting animation and labels to btns
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
switch index { | |
case 0: | |
UIView.animate(withDuration: 0.3, animations: { | |
self.btnIniciarOUTLET.setTitle("Próximo", for: .normal) | |
self.btnIniciarOUTLET.alpha = 1 | |
}) | |
case 1: | |
UIView.animate(withDuration: 0.3, animations: { | |
self.btnIniciarOUTLET.setTitle("Próximo", for: .normal) | |
self.btnIniciarOUTLET.alpha = 1 | |
}) | |
case 0: | |
UIView.animate(withDuration: 0.3, animations: { | |
self.btnIniciarOUTLET.setTitle("Entendi", for: .normal) | |
self.btnIniciarOUTLET.alpha = 1 | |
}) | |
default: | |
break | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment