title: Custom UITableViewCell without storyboard not displaying
body: <p>UPDATE WITH ANSWER</p>
  
  <p>I can use the textlabel property of the cell, i can set attributes to my custom labels and print the value (with the print after the switch), but i cannot get anything custom to display, not the background color, not the value, not anything.</p>
  
  <p>Please note that i don't use storyboard at all for this, and the two classes are inside the same file (tried using two separate files, doesn't change anything so it is not related to my issue).</p>
  
  <p>If anyone got an idea of what the issue is here and could point me to the right direction it would be great.</p>
  
  <pre><code>class DayPickerTableViewController: UITableViewController {
  
  override func viewDidLoad() {
      super.viewDidLoad()
  
      // Uncomment the following line to preserve selection between presentations
      // self.clearsSelectionOnViewWillAppear = false
  
      // Uncomment the following line to display an Edit button in the navigation bar for this view controller.
      // self.navigationItem.rightBarButtonItem = self.editButtonItem()
      self.tableView.registerClass(DayPickerTableViewCell.self, forCellReuseIdentifier: "cell")
      self.tableView.scrollEnabled = false
      self.tableView.bounces = false
      self.tableView.rowHeight = UITableViewAutomaticDimension
      self.tableView.estimatedRowHeight = 44
  }
  
  override func didReceiveMemoryWarning() {
      super.didReceiveMemoryWarning()
      // Dispose of any resources that can be recreated.
  }
  
  // MARK: - Table view data source
  
  override func numberOfSectionsInTableView(tableView: UITableView) -&gt; Int {
      // #warning Incomplete implementation, return the number of sections
      return 1
  }
  
  override func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -&gt; Int {
      // #warning Incomplete implementation, return the number of rows
      return 8
  }
  
  
  override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -&gt; UITableViewCell {
      let cell = tableView.dequeueReusableCellWithIdentifier("cell", forIndexPath: indexPath) as! DayPickerTableViewCell
      cell.textLabel!.text = "test"
      switch indexPath.row {
  
      case 0:
          cell.dayModeLabel.text = "DAY"
          break
      case 1:
          cell.dayModeLabel.text = "WEEK"
          break
      case 2:
          cell.dayModeLabel.text = "WORK WEEK"
  
          break
      case 3:
          cell.dayModeLabel.text = "WEEK-END"
  
          break
      case 4:
          cell.dayModeLabel.text = "MONTH"
  
          break
      case 5:
          cell.dayModeLabel.text = "YEAR"
  
          break
      case 6:
          cell.dayModeLabel.text = "ALL HISTORY"
  
          break
      case 7:
          cell.dayModeLabel.text = "CUSTOM"
  
          break
      default: break
      }
      print(cell.dayModeLabel.text)
      return cell
  }
  
  }
  
  class DayPickerTableViewCell: UITableViewCell {
  
  var imgDayPicker = UIImageView()
  var dayModeLabel = UILabel()
  var dayDisplayLabel = UILabel()
  
  override func awakeFromNib() {
      super.awakeFromNib()
      // Initialization code
  
      imgDayPicker.translatesAutoresizingMaskIntoConstraints = false
      dayModeLabel.translatesAutoresizingMaskIntoConstraints = false
      dayDisplayLabel.translatesAutoresizingMaskIntoConstraints = false
  
      imgDayPicker.backgroundColor = UIColor.redColor()
      dayModeLabel.backgroundColor = UIColor.blackColor()
      dayDisplayLabel.backgroundColor = UIColor.greenColor()
      self.contentView.addSubview(imgDayPicker)
      self.contentView.addSubview(dayModeLabel)
      self.contentView.addSubview(dayDisplayLabel)
  
      let viewsDict = [
          "image" : imgDayPicker,
          "mode" : dayModeLabel,
          "day" : dayDisplayLabel,
      ]
  
      contentView.addConstraints(NSLayoutConstraint.constraintsWithVisualFormat("H:|[image(50)][mode(==day)]|", options: NSLayoutFormatOptions(rawValue: 0), metrics: nil, views: viewsDict))
  }
  
  override func setSelected(selected: Bool, animated: Bool) {
      super.setSelected(selected, animated: animated)
  
      // Configure the view for the selected state
  }
  
  }
  </code></pre>
  
  <p>in order for the code to work, replace the awake from nib method with this :</p>
  
  <pre><code>override init(style: UITableViewCellStyle, reuseIdentifier: String?) {
      super.init(style: style, reuseIdentifier: reuseIdentifier)
      imgDayPicker.translatesAutoresizingMaskIntoConstraints = false
      dayModeLabel.translatesAutoresizingMaskIntoConstraints = false
      dayDisplayLabel.translatesAutoresizingMaskIntoConstraints = false
  
      imgDayPicker.backgroundColor = UIColor.redColor()
      dayModeLabel.backgroundColor = UIColor.blackColor()
      dayDisplayLabel.backgroundColor = UIColor.greenColor()
      self.contentView.addSubview(imgDayPicker)
      self.contentView.addSubview(dayModeLabel)
      self.contentView.addSubview(dayDisplayLabel)
  
      let viewsDict = [
          "image" : imgDayPicker,
          "mode" : dayModeLabel,
          "day" : dayDisplayLabel,
      ]
  
      contentView.addConstraints(NSLayoutConstraint.constraintsWithVisualFormat("H:|[image(50)][mode(==day)]|", options: NSLayoutFormatOptions(rawValue: 0), metrics: nil, views: viewsDict))
  }
  
  required init?(coder aDecoder: NSCoder) {
      fatalError("init(coder:) has not been implemented")
  }
  </code></pre>