Last week I mentioned a straightforward tutorial for working with the iOS user data API’s including a user’s contacts.
Here’s an iOS Objective-C example from Daniel Bader providing more insight into working with a user’s contact list. The example shows not only how to gather a user’s contacts but also how to guess a user’s favorite contacts.
This is done by rating each individual contact using the assumption that the more information a user has about a contact the greater the importance of that contact.
You can find the example code along with more details on the techniques used on Daniel’s blog here.
No private APIs are used so this is safe within your apps, and from my testing looks like it does a good job of guessing which contacts are most important.
via @romainbriche
- Open Source: iOS Address Book Wrapper Library Providing Automatic Hashing And Permission Alerts
- Tutorial: Working With iOS User Data APIs (Location, Calendar, Address Book, Photos)
- Apps Using UDIDs Being Rejected By Apple – Here’s How To Generate Replacements Quickly
- Beginning iPhone Development 3 Book Source Code
- Best Resources In iOS Development – February 20th, 2012
Original article: Example: How To Guess And Get A User’s Favorite iOS Address Book Contacts
©2013 iOS App Dev Libraries, Controls, Tutorials, Examples and Tools. All Rights Reserved.