title: Definition conflicts with previous value - also, when is override deleted?
body: <p>So I am attempting to make a tableview out of an array of cloudkit downloaded items.  However, I'm having this simple little "definition conflicts with pervious value" error.  This error occurs for the cellForRowAtIndexPath function - which supposedly conflicts with the numberOfRowsInSection function.  I have attempted moving/deleting brackets of the latter function and by placing a question mark/optional at the end... "-> UITableViewCell?" to no avail.  Where could the error be coming from?</p>
  
  <p>Also, as it stands, xcode deleted the override portion of each tableview function.  Why does it sometimes stay and when is it deleted?</p>
  
  <pre><code>import UIKit
  import CloudKit
  class DiningTable: UITableViewController {
   var categories: Array&lt;CKRecord&gt; = []
  override func viewDidLoad() {
      super.viewDidLoad()
  
  func getRecords()
      {
          categories = []
  
          let publicDatabase = CKContainer.defaultContainer().publicCloudDatabase
  
         let predicate = NSPredicate(value: true)
          let query = CKQuery(recordType: "DiningTypes", predicate: predicate)
  
          let queryOperation = CKQueryOperation(query: query)
          queryOperation.desiredKeys  = ["Name", "Address", "Picture"]
          queryOperation.qualityOfService = .UserInteractive
          queryOperation.recordFetchedBlock = { (record:CKRecord) -&gt; Void in
              let categoryRecord = record
              self.categories.append(categoryRecord)
      }
          queryOperation.queryCompletionBlock = { (cursor:CKQueryCursor?, error: NSError?) -&gt; Void in
              if (error != nil) {
                  print("Failed to get data from iCloud - \(error!.localizedDescription)")
                  dispatch_async(dispatch_get_main_queue(), {
                      self.tableView.reloadData()
                  })
              }
          }
          publicDatabase.addOperation(queryOperation
      }
  
  func tableView(tableView: UITableView, numberOfRowsInSection: Int) -&gt; Int {
          return self.categories.count
      }
       func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -&gt; UITableViewCell
      {
  
  
          let cell = tableView.dequeueReusableCellWithIdentifier("dining") as! DiningTableCell
          let restaurant: CKRecord = categories[indexPath.row]
          cell.RestaurantName?.text = restaurant.valueForKey("Name") as? String
  
  
         let img = restaurant.objectForKey("Picture") as! CKAsset
  
          cell.RestaurantPhoto.image = UIImage(contentsOfFile: img.fileURL.path!)
  
  
          return cell
      }
  func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
      if segue.identifier == "segue1" {    
          if let destViewController = segue.destinationViewController as? RestaurantTable {
              let indexPath = self.tableView.indexPathForSelectedRow!
              destViewController.indexpath1 = indexPath  
          }
      }
      }
  func didReceiveMemoryWarning() {
      super.didReceiveMemoryWarning()
      // Dispose of any resources that can be recreated.
  }
  }
  }
  </code></pre>