title: UITableView does not populate with data
body: <p>I am trying to make a simple UITableView with custom cells (including two labels and one image view) but I can't get the table to be populated with data.</p>
  
  <p>I have created the following struct for my data:</p>
  
  <pre><code>struct feed {
    var title: String
    var subtitle: String
    var image: String
  }
  </code></pre>
  
  <p>and here I have defined some sample data:</p>
  
  <pre><code>var myfeed = [feed(title: "Test Feed", subtitle: "Welcome to feedFeed", image: "https://www.demo.com/imnage1.png"), feed(title: "Number 2", subtitle: "Demo?", image: "https://www.demo.com/imnage2.png")]
  </code></pre>
  
  <p>I have created an UITableView in my Storyboard, have configured the Custom cell and am using the Cell identifier "LabelCell".
  I have created a separate cocoaTouchclass file for the UITableViewCell class:</p>
  
  <pre><code>import UIKit
  
  class ehappyTableViewCell: UITableViewCell {
  
      @IBOutlet weak var headlineTitleLabel: UILabel! 
      @IBOutlet weak var headlineTextLabel: UILabel!
      @IBOutlet weak var headlineImageView: UIImageView!
  
      override func awakeFromNib() {
         super.awakeFromNib()
         func tableView(_ tableView: UITableViewCell, heightForRowAt indexPath: IndexPath) -&gt; CGFloat
             { 
                return 100.0;//Choose your custom row height
              }
           // Initialization code
      }    
  
      override func setSelected(_ selected: Bool, animated: Bool) {
          super.setSelected(selected, animated: animated)
          // Configure the view for the selected state
      }
  
  }
  
  </code></pre>
  
  <p>In my ViewController file I have the following code:</p>
  
  <pre><code>    @IBOutlet weak var table: UITableView!    
  
      func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -&gt; Int {
          return myfeed.count
      }
  
      func tableView(_ tableViwq: UITableView, cellForRowAt indexPath: IndexPath) -&gt; UITableViewCell {
          let cell:ehappyTableViewCell = self.table.dequeueReusableCell(withIdentifier: "LabelCell", for: indexPath) as! ehappyTableViewCell!
  
          let headline = myfeed[indexPath.row]
          cell.headlineTitleLabel?.text = headline.title
          cell.headlineTextLabel?.text = headline.subtitle
          let urlWithoutHTTP = headline.image
          let httpAddition = "https:"
          let addition = "\(httpAddition)\(urlWithoutHTTP)"
  
          let url = URL(string: addition)
  
          DispatchQueue.global().async {
             let data = try? Data(contentsOf: url!) //make sure your image in this url does exist, otherwise unwrap in a if let check / try-catch
              DispatchQueue.main.async {
                  cell.headlineImageView.image = UIImage(data: data!)
              }
          }
          return cell
      }
  
      func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -&gt; CGFloat {
          return 140.0;//Choose your custom row height
      }
  
      override func viewDidLoad() {
          super.viewDidLoad()
          self.table.delegate = self
          self.table.dataSource = self
      }
  </code></pre>
  
  <p>When I run the app the table will not populate with the sample data I have created. 
  Any suggestions on what I can do?</p>