© 2013 All rights reserved.
0

iOS 6: correctly use ABAddressBookRequestAccessWithCompletion

In iOS 6 is always necessary to verify that the application has access to the contacts directory.

The application works in iOS 5.x, but does not work in iOS 6.x. ABAddressBookGetPersonCount returns -1. This is caused by the fact that you do not work correctly with contacts, and applications can not access it.

 

Example of use:

 

Comments are closed for this page

About
Hi, i am programmer from the Czech Republic. I love web development (Ruby, Ruby on Rails, PHP, Nette) and iOS development (Objective-C, Cocoa).
To cooperate, here is my phone:
+420 608 836