lundi 27 juillet 2015

How to add the random number value in swift

sorry, i am started learning swift. I have question:

I want a label display 3 random number from 1 -10 . Each time the displayed number will changed randomly, and the number will appear in the label in 1 second before change to other number. After displaying 3 random number, it will give the total value of 3 numbers it appeared.

for example: when I click button, the label give me a first number, 1 second later, the label give me the second number, 1 second later the label give me the third number then label stop and give me the total number (number1 + number2 + number3 )in the other result label.

could you give me some clues.

thanks mates.




Aucun commentaire:

Enregistrer un commentaire