I want a button, that gets disabled for a certain amount of time when it is touched.
I am trying to get this done with an if statement
if //button is touched/tapped { //disable button for 30 seconds and then enable again } else { // button is enabled}
But all my if statements are not working. What shall I do? Also I do not want the user to reset the timer by simply relaunching the app, how do I manage to do that?
Aucun commentaire:
Enregistrer un commentaire