title: swift how to pass image to a clickable tableview cell?
body: <p>I am making a tableview that the user can press and get more detailed information from the pressed cell. However, I am having some trouble on how to get the UIimage to work. </p>
  
  <p>my code is the following: </p>
  
  <pre><code>let shotMatchSegue = "ShowMatchSegue"
  override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
      if segue.identifier == shotMatchSegue,
      let destination = segue.destinationViewController as? MatchViewController, 
      matchIndex = recentMatchesTableView.indexPathForSelectedRow?.row
      {
          destination.matchChampionImage = UIImage(named: "\(championsPlayed[matchIndex])_Splash_Tile_0")
          destination.matchType = gameType[matchIndex]
      }
  }
  </code></pre>
  
  <p>on my MatchViewController, i have the following:</p>
  
  <p>@IBOutlet weak var gameMatchChampionIcon: UIImageView!</p>
  
  <pre><code>@IBOutlet weak var gameMatchType: UILabel!
  var matchType = String()
  var championIcon = String()
  override func viewWillAppear(animated: Bool) {
      gameMatchChampionIcon.image = UIImage()
      gameMatchType.text = matchType
  }
  </code></pre>
  
  <p>I can imagine it's most likely the case that I set up my gameMatchChampionIcon.image = UIImage() wrong. So I am wondering what is the correct way to setup if I want to pass in images to the UIimage</p>
  
  <p>thanks for the help !</p>