Alterplay / APAddressBook

Easy access to iOS address book
MIT License
1.38k stars 193 forks source link

Contact's company always returns nil #79

Closed mplaczek closed 9 years ago

mplaczek commented 9 years ago

Hi, I'm having trouble extracting the company info from my contacts. At the moment I iterate thought the Contacts list and pass a contact to a method to extract the first and last name and concatenate these into a string that is returned. However for entries that have no first and last name I'm trying to return the company instead. However, contacts[i].company always returns nil

belkevich commented 9 years ago

Hi Do you include APContactFieldCompany in field mask?

mplaczek commented 9 years ago

Thank you, that works. Apologies, I did not realise that data would not be returned by default.