Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS

embed users address book in UIViewController?

I'm trying to make it so that I can embed a users address book into the UIViewController. I would like to add all of the users contacts in the ViewController. Does anyone know how to do this or a starting point? Thanks

3 Answers

Could you elaborate more one what you mean? You want to display the entire address book on your screen? Is it something like this that you're looking for maybe?

Sorry about the slow response. Busy week!

Something like that except I just want a page that asks for permission to access your contacts and then all your contacts are displayed on that screen. No editing them...just a display.

Take a look at the AddressBook framework. It looks like you have to request access and once it's granted you would create a copy of the address book but omit the call to save changes.