title: How can I get the contact ID
body: <p>I have a problem with getting the contact ID from the address book.</p>
  
  <p>My .m file:</p>
  
  <pre><code>-(IBAction)test:(id)sender
  {
      ABPeoplePickerNavigationController* picker = [[ABPeoplePickerNavigationController alloc] init];
      picker.peoplePickerDelegate = self;
      [self presentViewController:picker animated:YES completion:nil];
  }
  
  -(void)peoplePickerNavigationController:(ABPeoplePickerNavigationController *)peoplePicker didSelectPerson:(ABRecordRef)person
  {
      [peoplePicker dismissViewControllerAnimated:YES completion:nil];
      ABRecordID recordID = ABRecordGetRecordID(person);
      label.text = [NSString stringWithFormat:@"%d", recordID];
  
  }
  
  -(void)peoplePickerNavigationControllerDidCancel:(ABPeoplePickerNavigationController *)peoplePicker
  {
      [peoplePicker dismissViewControllerAnimated:YES completion:nil];
  }
  </code></pre>
  
  <p>I imported the AddressBook and the AddressBookUI into the .h file.
  It works all but I get the wrong ID.
  Everytime I only get the ID -1 and that stands for error.</p>
  
  <p>Hope you can help me.</p>
  
  <p>Thanks a lot,
  Christian</p>