mercredi 30 décembre 2015

How to make an array of UILabels in Swift

i'm trying to make a random text array then call it on a label but errors keep showing up

let array = ["Yes", "No", "Maybe", "perhaps"] let randomIndex = Int(arc4random_uniform(UInt32(array.count)))

label.text = (array[randomIndex])




Aucun commentaire:

Enregistrer un commentaire