Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7877879
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T03:30:12+00:00 2026-06-03T03:30:12+00:00

I hit this weird problem when implementing ABPeoplePickerNavigationControllerDelegate. So identifier sometime was got its

  • 0

I hit this weird problem when implementing ABPeoplePickerNavigationControllerDelegate. So identifier sometime was got its value incorrectly in delegate method

- (BOOL)peoplePickerNavigationController:(ABPeoplePickerNavigationController *)peoplePicker shouldContinueAfterSelectingPerson:(ABRecordRef)person property:(ABPropertyID)property identifier:(ABMultiValueIdentifier)identifier;

For example when I chose the first number from a contact, identifier should be 0. But sometime it was 1 (even when that contact only has 1 number)!!

It is easy to verify that,

...
ABMultiValueRef phoneProperty = ABRecordCopyValue(person,property);
int count = ABMultiValueGetCount(phoneProperty);
NSLog(@"How many numbers do I have %d and which number do I choose %d",count,identifier); 

And it printed out this sometime

How many numbers do I have 1 and which number do I choose 1

so has anyone hit the same problem as well ?

Update: sometime identifier is even bigger than count. How come!!

How many numbers do I have 2 and which number do I choose 3

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T03:30:13+00:00Added an answer on June 3, 2026 at 3:30 am

    Just figured out why and feel embarrassed of myself.

    So ABMultiValueIdentifier is different than index, after I got identifier I need to use ABMultiValueGetIndexForIdentifier to get the index. Then using that index to call ABMultiValueCopyValueAtIndex.

    BTW, there was a same question at AdressBook Crash, only with some contacts!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to learn ASP.NET MVC and I hit this problem: I have
I have hit upon this problem about whether to use bignums in my language
This is a problem I hit when trying to implement a game using the
I get this weird problem when working in Python in my vim, when I
I've hit a weird problem with my Android app. My main activity has a
I hit this weird namespace issue when adding my first 'Service Reference' to a
I have got a weird problem here, and more interesting that it works fine
This is a weird one. I am using the ExecWB method to create a
NSXMLParserInvalidCharacterError # 9 This is the error I get when I hit a weird
I hit this error while my web application was trying to execute a SELECT

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.