Search code examples
iosswiftiphoneswift3uikit

I'm facing with one little issue can you help me guys? any advice appreciated


This should be portray asset image when "ask" button pressed. i wrote all things that i knew but it still show like that


Solution

  • In the image you posted, you defined:

    @IBOutlet var ImageView: [UIImageView]!
    

    but then you try to reference it with a lower-case i:

    imageView = ballArray...
    

    As a side note, even correcting to an upper-case i you'll get an error, because you've defined ImageView as an array of image views, but you're code trying to assign one image view to it (from your ballArray).