So, while working in swift, i made a view in a viewController where when I tap another view in the same ViewController, it generates an array with value
[arc4random_uniform(257), arc4random_uniform(257), arc4random_uniform(257)]
where the random numbers are parameters for random RBG colors, and I've only sort-of made it work. I want it so that every time the user (or me ;_;) taps on the view with the Tap Gesture Recognizer, it generates another random color. I don't really know how to "re-roll" the Array so that it generates another random color.
Aucun commentaire:
Enregistrer un commentaire