1

I am using ABPersonViewController to display information from the phone's contacts. In iOS6 it works fine and I see all of the fields.

In iOS 7 however, only the name shows up and not the other fields like phone number and address. What do I need to do to make the other fields show up in iOS 7 ?

rmaddy
  • 314,917
  • 42
  • 532
  • 579
harmanjd
  • 1,874
  • 19
  • 21

1 Answers1

1

I was having issues with this as well. Once I set the addressBook property on the ABPersonViewController, it starting working as I expected.

addressBook Optional. The address book from which to obtain the contact to display. @property(nonatomic, readwrite) ABAddressBookRef addressBook

  • Just as a warning to anyone who may have this problem in iOS 8 - I found that if I set the address book before the person then none of the details would display, whereas if I set it after, then everything works as expected! – Rupert Nov 07 '14 at 19:35