¡@

Home 

2014/10/15 ¤U¤È 10:03:28

iphone Programming Glossary: abmultivalueaddvalueandlabel

how to add a contact from my app to iphone address book

http://stackoverflow.com/questions/3334047/how-to-add-a-contact-from-my-app-to-iphone-address-book

kABPersonAddressStateKey addressDictionary setObject postal forKey NSString kABPersonAddressZIPKey bool didAddHome ABMultiValueAddValueAndLabel multiHome addressDictionary kABHomeLabel NULL if didAddHome ABRecordSetValue persona kABPersonAddressProperty multiHome.. ABMutableMultiValueRef multiPhone ABMultiValueCreateMutable kABMultiStringPropertyType bool didAddPhone ABMultiValueAddValueAndLabel multiPhone phoneNumber kABPersonPhoneMobileLabel NULL if didAddPhone ABRecordSetValue persona kABPersonPhoneProperty multiPhone.. ABMutableMultiValueRef emailMultiValue ABMultiValueCreateMutable kABPersonEmailProperty bool didAddEmail ABMultiValueAddValueAndLabel emailMultiValue emailString kABOtherLabel NULL if didAddEmail ABRecordSetValue persona kABPersonEmailProperty emailMultiValue..

How to create contacts in address book in iPhone SDK?

http://stackoverflow.com/questions/5377441/how-to-create-contacts-in-address-book-in-iphone-sdk

so create a multivalue ABMutableMultiValueRef phoneNumberMultiValue ABMultiValueCreateMutable kABPersonPhoneProperty ABMultiValueAddValueAndLabel phoneNumberMultiValue phone kABPersonPhoneMobileLabel NULL ABRecordSetValue person kABPersonFirstNameProperty @ FirstName..

how to add new contact to iphone addressbook?

http://stackoverflow.com/questions/5389508/how-to-add-new-contact-to-iphone-addressbook

people.lastname error ABMutableMultiValueRef multiPhone ABMultiValueCreateMutable kABMultiStringPropertyType ABMultiValueAddValueAndLabel multiPhone people.phone kABPersonPhoneMainLabel NULL ABMultiValueAddValueAndLabel multiPhone people.other kABOtherLabel.. kABMultiStringPropertyType ABMultiValueAddValueAndLabel multiPhone people.phone kABPersonPhoneMainLabel NULL ABMultiValueAddValueAndLabel multiPhone people.other kABOtherLabel NULL ABRecordSetValue newPerson kABPersonPhoneProperty multiPhone nil CFRelease multiPhone..

How to save contact info from vCard into iPhone's Contacts App

http://stackoverflow.com/questions/8132326/how-to-save-contact-info-from-vcard-into-iphones-contacts-app

so create a multivalue ABMutableMultiValueRef phoneNumberMultiValue ABMultiValueCreateMutable kABPersonPhoneProperty ABMultiValueAddValueAndLabel phoneNumberMultiValue phone kABPersonPhoneMobileLabel NULL ABRecordSetValue person kABPersonFirstNameProperty @ FirstName..

Objective C Adding a Contact to a specific Group in the iPhone

http://stackoverflow.com/questions/8249010/objective-c-adding-a-contact-to-a-specific-group-in-the-iphone

__bridge_retained CFStringRef title nil ABMultiValueRef multiPhone ABMultiValueCreateMutable kABMultiRealPropertyType ABMultiValueAddValueAndLabel multiPhone __bridge_retained CFStringRef workTel kABWorkLabel NULL ABMultiValueAddValueAndLabel multiPhone __bridge_retained.. ABMultiValueAddValueAndLabel multiPhone __bridge_retained CFStringRef workTel kABWorkLabel NULL ABMultiValueAddValueAndLabel multiPhone __bridge_retained CFStringRef workFax kABPersonPhoneWorkFAXLabel NULL ABRecordSetValue contact kABPersonPhoneProperty..