vendredi 17 juillet 2015

How to convert PFObject array in image view?

Sorry guys I want to try this again just reword it so its understandable.

ImageFiles is an array of PFObjects, about 10 images

let randomNumber = imageFiles[Int(arc4random_uniform(UInt32(imageFiles.count)))]

    println(randomNumber)

and the println gives me a random image file from the array.

How do I put that into the image view? Meaning i want a random element of the array to be viewable in the uiimage view.




Aucun commentaire:

Enregistrer un commentaire