November 2013
Intermediate to advanced
576 pages
19h 3m
English
Often, you will encounter Address Book objects that can store multiple values, such as phone numbers, email addresses, or street addresses. These are all accessed using ABMultiValueRefs. The process is similar to that for single values with one additional level of complexity.
The first thing you need to do when working with multivalues, such as phone numbers, is copy the value of the multivalue property. In the following code example, use kABPersonPhoneProperty from the record that was set in the previous section. This provides you with an ABMultiValueRef called phoneNumbers.
A check is then needed to make sure that the contact has at least one phone number using the ABMultiValueGetCount function. Here, ...
Read now
Unlock full access