文章地址 : https://wilddylan.github.io/2016/08/22/AddressBook-framework/
https://wilddylan.github.io/2016/08/22/AddressBook-framework/
本文标题:AddressBook, AddressBookUI,iOS联系
本文链接:https://www.haomeiwen.com/subject/kbneqttx.html
网友评论
大神 help啊
试一下这个
ABAddressBookRef addressBook = ABAddressBookCreateWithOptions(NULL, NULL);
if(addressBook) {
ABAddressBookRequestAccessWithCompletion(addressBook, ^(bool granted, CFErrorRef error) {
dispatch_async(dispatch_get_main_queue(), ^{
if (granted) {
accessGranted();
} else {
accessDenied();
}
});
});
}