1
ABAddressBookRef addressBook = ABAddressBookCreateWithOptions(nil, nil);

ABAddressBookRequestAccessWithCompletion(addressBook, ^(bool granted, CFErrorRef error) {
    NSArray *folks = (__bridge NSArray *)(ABAddressBookCopyArrayOfAllPeople(addressBook));
    NSLog(@"%@",folks);
});

I'm able to access the contacts with no prompt to the user. Opening Settings > Privacy > Contacts I see no entry for my application. (Running in Simulator)

quantumpotato
  • 9,637
  • 14
  • 70
  • 146
  • Are you running the iOS 6 simulator? You're only asked for permission once per app. Try reinstalling the app. – DrummerB Nov 07 '12 at 20:01
  • I never got asked the first time. Deleted, still the same thing. I can access my contact data with no prompt not using any deprecated functions.. something's not right. Don't see it in the General>Privacy section. – quantumpotato Nov 07 '12 at 20:05

1 Answers1

2

The contacts privacy prompt doesn't work on the simulator. Try it on a device.

Christopher Pickslay
  • 17,523
  • 6
  • 79
  • 92