jeudi 20 juillet 2017

How to create an If statement that will change the alpha of a label depending on the number of a variable I have created?

I have set a labels alpha to 0 in viewDidLoad

label.alpha = 0

I want the labels alpha to change to 1 once the variable 'count' has reached 8.

    if Count == 8 {
        self.label.alpha = 1

    }

The count works fine, but when it reaches 8 the label is not showing! Any help is appreciated!

Aucun commentaire:

Enregistrer un commentaire