ABMutableMultiValueRef *address = (NSString *)ABRecordCopyValue(thisPerson, kABPersonAddressProperty);
for (CFIndex i=0; i < ABMultiValueGetCount(address); i++) {
CFDictionaryRef dict = ABMultiValueCopyValueAtIndex(address, i);
The code works but generates a warning. Any clue?
Warning: FirstViewController.m:46: warning: initialization from incompatible pointer type
I believe you’re getting a warning because you’re assigning an
NSString*value to aABMutableMultiValueRef*variable. You should only assign a pointer variable to a pointer of the same type.