title: How to change the hidden status of a UIImage that is inside an Array in swift?
body: <p>I'm doing a test app for iPhone (Swift) where my objective is to show multiple images that are currently hidden in a determinate order each time a button is pressed. I thought that i could write:</p>
  
  <pre><code>import UIKit
  
  class ViewController: UIViewController {
  
  
      var num = -1
  
      var array: [UIImage] = [UIImage(named: "card 1.jpeg")!, UIImage(named: "card 2.jpeg")!, UIImage(named: "card 3.jpeg")!]
  
  
      @IBAction func button(sender: AnyObject) {
  
          num += 1
          array[num].hidden = false
  
      }
  }
  </code></pre>
  
  <p>However, "array[num].hidden = false" isn't possible. I want to keep it as simple as possible. Thanks for the help!</p>