title: Data not showing in custom tableview cell in swift have added the cell class below
body: <p>I have tried everything possible but I still can't figure out why the data is not shown in a custom cell. It looks fine in a <code>subTitle</code> cell and <code>println</code> confirms the data is there. I have checked the identifier and the <code>IBOutlets</code> a 100 times:</p>
  
  <pre><code>//  ActivityDetailsTableViewController.swift
  //  TestActForm
  //
  //  Created by Jeremy Andrews on 2015/08/08.
  //  Copyright (c) 2015 Jeremy Andrews. All rights reserved.
  //
  
  import UIKit
  
  class ActivityDetailsTableViewController: UITableViewController
  {
  
      var activities: [Activity] = activityProfile
  
      override func viewDidLoad() 
      {
          super.viewDidLoad() 
      }
  
      override func didReceiveMemoryWarning() 
      {
          super.didReceiveMemoryWarning()
      }
  
      // MARK: - Table view data source
  
      override func numberOfSectionsInTableView(tableView: UITableView) -&gt; Int 
      {   
          return 1
      }
  
      override func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -&gt; Int 
      {
          return activities.count
      }
  
  
      override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath)
          -&gt; UITableViewCell 
      {
          let cell = tableView.dequeueReusableCellWithIdentifier("ActivityDetail", forIndexPath: indexPath) as! ActivityDetailCell
          let activity = activities[indexPath.row] as Activity
          println(activity.question)
          cell.questionLabel?.text = activity.question
          cell.answerLabel?.text = activity.answer
          println(cell.questionLabel.text)
          return cell
      }
  
  }
  
  import UIKit
  
  class ActivityDetailCell: UITableViewCell 
  {
      @IBOutlet weak var questionLabel: UILabel!
      @IBOutlet weak var answerLabel: UILabel!
  
  
      override func awakeFromNib() 
      {
          super.awakeFromNib()
          // Initialization code
      }
  
      override func setSelected(selected: Bool, animated: Bool) 
      {
          super.setSelected(selected, animated: animated)
          // Configure the view for the selected state
      }  
  }
  </code></pre>