title: How can I make my cells in UITableView editable?
body: <p>I have 2 view controllers. One is a UITableView and the other is the VC that lets me add a cell in the table. </p>
  
  <p>PeopleListViewController:</p>
  
  <pre><code>var people = [Person]()
  override func didReceiveMemoryWarning() {
          super.didReceiveMemoryWarning()
          // Dispose of any resources that can be recreated.
      }
  
      // Table view data source
      override func numberOfSectionsInTableView(tableView: UITableView) -&gt; Int {
          // Return the number of sections.
          return 1
      }
  
      override func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -&gt; Int {
          // Return the number of rows in the section.
          return people.count
      }
  
      override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -&gt; UITableViewCell {
          let cell = tableView.dequeueReusableCellWithIdentifier("personCell", forIndexPath: indexPath) as UITableViewCell
  
          // Configure the cell...
          cell.textLabel.text = (people[indexPath.row]).dateTime //Each row will say the date of the person.
          return cell
      }
  
      @IBAction func cancel(segue:UIStoryboardSegue){
  
      }
  
      @IBAction func done(segue:UIStoryboardSegue){
          var addPersonVC = segue.sourceViewController as AddPersonViewController
  
          var newPerson = Person()
          newPerson.dateTime = addPersonVC.date
  
          people.append(newPerson)
      }
  </code></pre>
  
  <p>AddPersonViewController:</p>
  
  <pre><code>@IBOutlet weak var dateAndTime: UITextField!
      let date = NSDateFormatter.localizedStringFromDate(NSDate(), dateStyle: .MediumStyle, timeStyle: .ShortStyle)
      override func viewDidLoad() {
          super.viewDidLoad()
          dateAndTime.text = "\(date)"
      }
  override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject!) {
          if segue.identifier == "doneSegue" {
  
          }
      }
  </code></pre>
  
  <p>Right now what it does is comes up with a tableview. When I click the add button it takes me to the addpersonvc and automatically preloads the date. When I hit done, it goes back to the peoplelistvc and fills the date in the table cell.</p>
  
  <p>How can I make it so that when I click on a cell it will let me go back to the addpersonvc and edit it?
  Thank you.</p>