title: Getting error Ambiguous use of tableView(_:numberOfRowsInSection:)
body: <p>I am using xcode 7 beta and I have found this code off a tutorial however I am using a <code>UIViewController</code> instead of <code>UITableViewController</code> for many reasons. (I don't know if this is causing this specific issue). I have gotten the <code>UIViewController</code> setup just like a typical <code>UITableViewController</code> however I am running into the error </p>
  
  <blockquote>
    <p>Ambiguous use of <code>'tableView(_:numberOfRowsInSection:)</code></p>
  </blockquote>
  
  <p>Here's my code</p>
  
  <pre><code>class ShoppingViewController: UIViewController {
  var toDoItems:NSMutableArray = NSMutableArray()
  
  override func viewDidAppear(animated: Bool) {
  
      var userDefaults:NSUserDefaults = NSUserDefaults.standardUserDefaults()
  
      var itemListFromUserDefaults:NSMutableArray? = userDefaults.objectForKey("itemList") as? NSMutableArray
  
      if ((itemListFromUserDefaults) != nil){
              toDoItems = itemListFromUserDefaults!
      }
  
      **self**.tableView.reloadData()
  }
  </code></pre>
  
  <p>as well as </p>
  
  <pre><code>if (segue != nil &amp;&amp; segue!.identifier == "showDetail") {
      var selectedIndexPath:NSIndexPath = **self**.tableView.indexPathForSelectedRow()
      var detailViewController:DetailsViewController = segue!.destinationViewController as! DetailsViewController
      detailViewController.toDoData = toDoItems.objectAtIndex(selectedIndexPath.row) as! NSDictionary
  
  }
  </code></pre>
  
  <p>Candidates (according to XCode):</p>
  
  <pre><code>func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -&gt; Int {
      return toDoItems.count
  }
  
  
  func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -&gt; UITableViewCell {
      let cell = tableView.dequeueReusableCellWithIdentifier("Cell", forIndexPath: indexPath) as UITableViewCell
  
      let toDoItem:NSDictionary = toDoItems.objectAtIndex(indexPath.row) as! NSDictionary
      cell.textLabel!.text = toDoItem.objectForKey("itemTitel") as? String
  
      return cell
  }
  </code></pre>