jeudi 23 juin 2016

Xcode calling an ImageView variable inside an if statement

I'm using Swift in Xcode and that's my issue

I want to declare a variable where i want to store an ImageView (Not an Image, but an ImageView), so i tried something like that: var nameVariable = nameImageView

Then i need to recall this nameVariable inside an if statement: if((nameVariable).center.y > something){..}

I tried using "(nameVariable)" but it doesn't work, can you help me?

Aucun commentaire:

Enregistrer un commentaire