I started developing a settings page for my app.
On this page, the user can tap a "+" button which will open the ABPeoplePickerNavigationController
. When the contact is tapped, the text fields on the settings page will be filled appropriately with the correct data from the chosen user.
I understand that if I want to retrieve someone's work email, it's:
NSString *workEmail = (__bridge NSString *)ABMultiValueCopyValueAtIndex(emails, 1);
and for home it would be:
NSString *homeEmail = (__bridge NSString *)ABMultiValueCopyValueAtIndex(emails, 0);
But as far as retrieving different types of phone numbers, I am stuck.
I would appreciate it much if someone could tell me how to get the different types of phone numbers hopefully similar to the way I get the two emails.