How to update a record’s address with ABAddressBook framework
I coded with ABAddressBook today. Even though ABAddressBook is deprecated from iOS 9, and replaced with Contacts framework, some people like me still needs to use it because of keeping supporting iOS 8.
When you code with ABAddressBook, you need to deal with Core Foundation types, like CFTypeRef. CFTypeRefs are a little bit different from other normal Foundation types. When you use them, you should be careful about the following:
Don't forget CFRelase(object);
The Create/Copy rule, and The Get rule.
(__bridge Type), (__bridge_retain Type), (__bridge_release Type)
NSString vs. CFStringRef, toll-free types
Very tedious way creating a new CFDictionaryRef
Here is the gist how to update address of a record in address book. For more details, check out Apple's Address Book Programming Guide for iOS.













