title: Swift: Edit ABPersonViewController
body: <p>I'm trying to set up my app so that when a specific contact is opened from the <code>ABPeoplePickerNavigationController</code>, in the <code>ABPersonViewController</code>, there's an edit button in the top right corner. </p>
  
  <p>I know questions very similar to this have been asked here before, but I've looked at each. Perhaps partially because they were for older versions of iOS, or because most were in Objective-C, or due to my own ignorance, I haven't been able to work this out. </p>
  
  <p>Here's my code: </p>
  
  <pre><code>func peoplePickerNavigationController(peoplePicker: ABPeoplePickerNavigationController!, shouldContinueAfterSelectingPerson person: ABRecord!) -&gt; Bool {
  
      /*let controller = ABPersonViewController()
      controller.displayedPerson = person
      controller.allowsEditing = true
      controller.editing = true
      controller.personViewDelegate = self
      peoplePicker.pushViewController(controller, animated: true)*/
  
      let picker = ABNewPersonViewController()
      picker.newPersonViewDelegate = self
      picker.displayedPerson = person
      picker.navigationItem.title = "edit contact"
      self.navigationController?.pushViewController(picker, animated: true)
  
      return false
  }
  </code></pre>
  
  <p>The commented code is what I had before I saw this question: <a href="https://stackoverflow.com/questions/19099071/ios7-abpersonviewcontroller-editing-mode">iOS7 - ABPersonViewController, editing mode</a></p>
  
  <p>Again, all I'm trying to do is add the edit button at the top so that the user has <em>the option</em> to edit a contact, but the <code>ABPersonViewController</code> should <strong>not</strong> open in edit mode. </p>
  
  <p>Any help is appreciated, I'm sorry if this is tedious. </p>