0

I need to get addressbook all phone labels.

I mean, not phone labels for all existing contacts, but all phone labels list(when you touch phone label in Contacts app there is a list of labels).

enter image description here

Is it possible?

Shmidt
  • 16,436
  • 18
  • 88
  • 136

1 Answers1

1

You can create your own labels on demand for individual ABPerson records. There is no central place where iOS keeps a list of all the standard labels. Here's my list of the iOS constants (I might have missed some) that are mapped to strings via ABAddressBookCopyLocalizedLabel:

kABPersonPhoneMobileLabel 
kABPersonPhoneIPhoneLabel 
kABPersonPhoneMainLabel   
kABPersonPhoneHomeFAXLabel
kABPersonPhoneWorkFAXLabel
kABPersonPhonePagerLabel  
kABWorkLabel              
kABHomeLabel              
kABOtherLabel

Any label that you add yourself will not be localized by iOS, it will appear verbatim regardless of locale setting.

jmay
  • 471
  • 4
  • 7