jeudi 11 juillet 2019

How do i randomize between labels when button is pressed?

I'm pretty new to swift. The purpose of my app is to show different labels/text when a button is pressed. I will have hundreds of labels so should i use some kind of a database. If so how can I randomize between these labels. Would be great if any of you could write that piece of code. I also need my app to remember the previous label, so that a user can go back when another button is pressed.




Aucun commentaire:

Enregistrer un commentaire