mercredi 3 août 2016

Remove object from [UIImageView]

I want to know if there is a way to delete an "object" (UIImage) from a [UIImageView]. I have connected 36 UIImages (@IBOutlets) to 1 [UIImageView] and would like to delete the fifth one, something like this;

@IBOutlet var ImageViews: [UIImageView]!

ImageViews.removeAtIndex(ImageViews[5])

But the only code I found directly to a UIImageView was .removeFirst() which I don't know how to use.

Aucun commentaire:

Enregistrer un commentaire