In the introduction to this chapter, it was mentioned that we would use
Contacts.framework to fetch a user's contacts list and display it in
Before we get started, we need to be sure we have access to the user's address book. In iOS 10, privacy is a bit more restrictive than it was earlier. If you want to have access to a user's contacts, you need to specify this in your application's
Info.plist file. If you fail to specify the correct keys for the data your application uses, it will crash without warning. So, before attempting to load your user's contacts, you should take care to add the correct key to
To add the key, open
Info.plist from the list of files in the Project Navigator on the left ...