Created
April 3, 2015 16:01
-
-
Save dodikk/6dc08147dc8c53e6c133 to your computer and use it in GitHub Desktop.
Name localization from WWDC
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NSString *firstName = ... | |
NSString *lastName = ... | |
ABRecordRef record = ABPersonCreate(); | |
ABRecordSetValue(record, kABPersonFirstNameProperty, | |
(CFStringRef)firstName, NULL); | |
ABRecordSetValue(record, kABPersonLastNameProperty, | |
(CFStringRef)lastName, NULL); | |
NSString *displayName = (NSString *)ABRecordCopyCompositeName(record); | |
CFRelease(record); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment