title: How to select a contact with ABPeoplePickerNavigationController in Swift?
body: <p>I have added the <code>ABPeoplePickerNavigationController</code> into my first view controller. I want that when I select a contact show the info to show in other view controller, but I'm trying use my code and this not show never when I click in a contact. This only open the contact into native app <code>ABPeoplePickerNavigationController</code>.</p>
  
  <pre><code>var people = ABPeoplePickerNavigationController()
  var addressBook: ABAddressBookRef?
  
  func extractABAddressBookRef(abRef: Unmanaged&lt;ABAddressBookRef&gt;!) -&gt; ABAddressBookRef? {
      if let ab = abRef {
          self.view.addSubview(people.view)
          return Unmanaged&lt;NSObject&gt;.fromOpaque(ab.toOpaque()).takeUnretainedValue()
      }
      return nil
  }
  </code></pre>
  
  <p>I tried this function</p>
  
  <pre><code>func peoplePickerNavigationController(peoplePicker: ABPeoplePickerNavigationController!,didSelectPerson person: ABRecordRef!) {
  
      var unmanagedEmails = ABRecordCopyValue(people, kABPersonEmailProperty)
      let emailObj: ABMultiValueRef = Unmanaged.fromOpaque(unmanagedEmails.toOpaque()).takeUnretainedValue() as NSObject as ABMultiValueRef
  
      var index = 0 as CFIndex
  
      var unmanagedEmail = ABMultiValueCopyValueAtIndex(emailObj, index)
      var emailAddress:String = Unmanaged.fromOpaque(unmanagedEmail.toOpaque()).takeUnretainedValue() as NSObject as String
  
      println(emailAddress)      
  }
  </code></pre>
  
  <p>Thanks!</p>