0

I get following warning under ARC:

Initializing 'ABMultiValueRef *' (aka 'const void **') with an expression of type 'CFTypeRef' (aka 'const void *') discards qualifiers.

on line

ABMultiValueRef *phones = ABRecordCopyValue(abPerson, kABPersonPhoneProperty);

abPerson is of ABRecordRef type.

What's wrong with this code?

P.S. I checked and everything works perfectly

Shmidt
  • 16,436
  • 18
  • 88
  • 136

1 Answers1

1

ABRecordCopyValue returns everything as a CFTypeRef. You must cast values to the particular reference type you want.

jmay
  • 471
  • 4
  • 7