title: How display UIImage in swift using struct
body: <p>Im having problems with UIImage, Im trying to display and image into the Image View but im having problems with my struct... can some one help me here is my code.</p>
  
  <pre><code>import UIKit
  
  struct Question {
      var Question: String!
      var Answers: [String]!
      var Answer: Int!
      var Img: UIImage?
  }
  
  class ViewController: UIViewController {
  
  @IBOutlet weak var questionLabel: UILabel!
  @IBOutlet var Buttons: [UIButton]!
  @IBOutlet weak var imgView: UIImageView! //This part Im pretty sure that i need to connect to the var Img:UIImage? but Im not sure how?
  
  //Creation of a variable to hold the Quesitons,Question Number and Answer Number
  
  var Questions = [Question]()
  var questionNumber = Int()
  var answerNumber = Int()
  
  override func viewDidLoad() {
      super.viewDidLoad()
      //Creation of the Question
      Questions = [Question(Question: "Who is this guy?", Answers: ["Alex","Roberto","Joey","Will"], Answer: 2, Img: UIImage.self(named:"steve_jobs"))]
  
      //We call our funciton into the viewDidLoad
      pickQuestion()
  }
  </code></pre>