In iOS 6, this code always gives me Nil for the second NSLog, however the first always gives the correct Composite Name. Hence I know I have access to the addressbook, if I change the name in addressbook, the code logs the correct Composite Name. No matter how many emails I put in, the contact ABMultiValueGetCount is always Nil. Why is this?
ABRecordRef person = (__bridge ABRecordRef)[addressBookArray objectAtIndex:x];
NSLog(@"%@ -", ABRecordCopyCompositeName(person));
NSLog(@"%ld -", ABMultiValueGetCount(ABRecordCopyValue(person, kABPersonEmailProperty)));