Marc
Marc

Reputation: 521

User pick a contact from address book using new iOS 9's Contacts framework

With iOS 9 the old Address Book API will be deprecated and we will have to use the new Contacts framework for any contacts-related feature.

My question, is there any way to present a View Controller so the user can pick a contact the same way you did with the Address Book framework?

If not, I suggest a discussion about which is the best solution for that, as we will have to stick to this framework from now on.

Upvotes: 1

Views: 942

Answers (1)

blutie
blutie

Reputation: 128

I believe the solution you are looking for is CNContactPickerViewController. You can find the reference here. I also suggest watching the WWDC video about the new Contacts Framework, as there isn't too much information yet on Stack Overflow.

Sorry, but I do not know how to use NSPredicate in conjunction with this controller, and it is required.

Upvotes: 1

Related Questions