Alterplay / APAddressBook

Easy access to iOS address book
MIT License
1.38k stars 193 forks source link

iOS 10 - Request permission #132

Closed ghost closed 8 years ago

ghost commented 8 years ago

Hi,

I had an issue (screenshot below) when I enter in this method : [addressBook loadContactsOnQueue:dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0) completion:^(NSArray *contacts, NSError *error) { if (!error) { //Do smthg } else { NSLog(@"Error : %@", error); } }];

capture d ecran 2016-07-29 a 10 15 27

This is due to iOS 10. To solve it, you need to add "Privacy - Contacts Usage Description" in your Info.plist, you can leave the value empty or put a message if you want.

Maybe you can add something about it in the README.

Have a nice day !

belkevich commented 8 years ago

Hi @Artimuss,

Thank you for feedback. I definitely add this to README after a short research about this flag

ghost commented 8 years ago

Hi @belkevich,

No problem!

belkevich commented 8 years ago

Done. @Artimuss, thank you for issue