D
D
Dmitry2015-12-16 12:00:35
Objective-C
Dmitry, 2015-12-16 12:00:35

How to reset iOS address book access status?

ABAddressBookRequestAccessWithCompletion(self.addressBook, ^(bool granted, CFErrorRef error)
{
    if (granted)
        {
            dispatch_async(dispatch_get_main_queue(), ^{
                [weakSelf accessGrantedForAddressBook];                 
            });
         }
});

The first time this code is called, it asks for access to the address book. The user's choice is remembered and subsequent calls do not display the access dialog. I need to show this dialog again, no matter what answer the user gave the first time.
How to do it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
s0L, 2015-12-16
@koyard

No, you can instead transfer the user to the settings

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question