I am trying to understand the ABAdressBookCreateWithOptions
and ABAddressBookRequestAccessWithCompletion
methods in iOS 6.
The most information i have been able to find is the following, "To request access to contact data, call the ABAddressBookRequestAccessWithCompletion
function after calling the ABAddressBookCreateWithOptions
function."
I believe together these methods should alert the user to decide whether to allow the application access to contacts, however when I use them I am seeing no prompt.
Could someone provide some sample code of how these methods should be called together in a real world example? How do I create (CFDictionary
) options? I have working code using the deprecated ABAddressBookCreate
method, but need to update to iOS 6 to accommodate privacy concerns.
Thanks in advance to anyone who can shed some light here!
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…