title: App doesn't show up anything on simulator after building static Table View
body: <p>I'm learning how to make <code>static</code> <code>table views</code> from this url (<a href="http://manenko.com/2014/12/16/how-to-create-an-input-form-using-uitableview.html" rel="nofollow">http://manenko.com/2014/12/16/how-to-create-an-input-form-using-uitableview.html</a>)
  I've followed everything it says and also as instructed, I delete all the methods from inside the class including the <code>numberOfSectionInTableView</code>, <code>numberOfRowsInSection</code>, and <code>cellForRowAtIndexPath</code>. The app failed to build.
  If I reinsert the methods without changing anything, The app works but didn't show anything, just an empty canvas. How do we solve this problem?
  It's the first time I use storyboard to design my app. Thanks!</p>
  
  <p>here's the full code</p>
  
  <pre><code>import UIKit
  
  class TableViewController: UITableViewController {
  
  @IBOutlet var labels: [UILabel]!
  
  
  override func viewDidLoad() {
      super.viewDidLoad()
  
      updateWidthForLabels(labels)
  
  
  }
  
  func calculateLabelWidth(label: UILabel) -&gt; CGFloat {
  
      let labelSize = label.sizeThatFits(CGSize(width: CGFloat.max, height: label.frame.height))
  
      return labelSize.width
  }
  
  func calculateMaxLabelWidth(labels: [UILabel]) -&gt; CGFloat {
  
      return labels.map(calculateLabelWidth).reduce(0, combine: max)
  }
  
  func updateWidthForLabels(labels: [UILabel]) {
  
      let maxLabelWidth = calculateMaxLabelWidth(labels)
  
      for label in labels {
  
          let constraint = NSLayoutConstraint(item: label, attribute: .Width, relatedBy: .Equal, toItem: nil, attribute: .NotAnAttribute, multiplier: 1, constant: maxLabelWidth)
  
          label.addConstraint(constraint)
      }
  }
  </code></pre>