title: How to fix "nib but didn't get a UITableView" error?
body: <p>Why I get this error? </p>
  
  <blockquote>
    <p>Terminating app due to uncaught exception
    'NSInternalInconsistencyException', reason: '-[UITableViewController
    loadView] loaded the "pB1-re-lu8-view-o7U-YG-E7m" nib but didn't get a
    UITableView.'</p>
  </blockquote>
  
  <p>here is my code:</p>
  
  <pre><code>class FriendListTableViewController: UITableViewController{
  
  
  var objects = NSMutableArray()
  var dataArray = [["firstName":"Debasis","lastName":"Das"],["firstName":"John","lastName":"Doe"],["firstName":"Jane","lastName":"Doe"],["firstName":"Mary","lastName":"Jane"]]
  
  override func viewDidLoad() {
      super.viewDidLoad()
  }
  
  override func didReceiveMemoryWarning() {
      super.didReceiveMemoryWarning()
      // Dispose of any resources that can be recreated.
  }
  
  // MARK: - Table View
  
   override func numberOfSectionsInTableView(tableView: UITableView) -&gt; Int {
      return 1
  }
  
   override func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -&gt; Int {
      return dataArray.count
  }
  
   override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -&gt; UITableViewCell {
  
      let cell = tableView.dequeueReusableCellWithIdentifier("Cell", forIndexPath: indexPath) as! UITableViewCell
      let object = dataArray[indexPath.row] as NSDictionary
      (cell.contentView.viewWithTag(10) as! UILabel).text = object["firstName"] as? String
      (cell.contentView.viewWithTag(11) as! UILabel).text = object["lastName"] as? String
      return cell
  }
  
   override func tableView(tableView: UITableView, canEditRowAtIndexPath indexPath: NSIndexPath) -&gt; Bool {
      // Return false if you do not want the specified item to be editable.
      return false
  }
  </code></pre>
  
  <p>my storyboard is like this:</p>
  
  <p><img src="https://i.stack.imgur.com/eR2kp.png" alt="storyboard"></p>