2012-05-22 79 views

回答

2
// This is what you have currently (i.e. the multivalues) 
ABMultiValueRef emailValues = ABRecordCopyValue(person, kABPersonEmailProperty); 

// This is how you extract the first item from the multivalues: 
CFStringRef cfEmailAddress = ABMultiValueCopyValueAtIndex(emailValues, 0); 

// This is how you convert it to an NSString. 
NSString *emailAddress = CFBridgingRelease(cfEmailAddress);