title: Selecting a row in table view with image and label gives only label text when get selected
body: <p>I have made this program so i can select two things <code>image</code> and a <code>label</code> from a table view and get printed in console. when i run this program table view appears and cell contains <code>image</code> and <code>label</code> but when i select the specific cell, only text is selected and image disappears. while when i run the program it continuously gives memory warnings as well.</p>
  
  <pre><code>func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
  
  
          let   selectedDataG = countryL[indexPath.row]
  
          countryButton.setTitle(selectedDataG, for: .normal)
  
  
          self.countryTable.isHidden = true
          self.flag = 1
  
          let indexPath = countryT.indexPathForSelectedRow
          let currentCell = countryT.cellForRow(at: indexPath!)! as! FlagTableViewCell
  
          let finalresult = currentCell.countryLabel.text!
          let finalFlag = currentCell.flagImage.image!
  
  
          print("\(finalFlag)" + "\(finalresult)")
  
      }
  
  
  }
  </code></pre>