ABPersonRef - use

Trying to create an object for ABPersonRef example: ABpersonRef ref;

include the structure of the Addressbook and AddressBookUI even when I compile it, declares "Undeclared Identifier" ABPersonRef

+3
source share
2 answers

Have you added import to the source file?

#import <AddressBook/AddressBook.h>
#import <AddressBookUI/AddressBookUI.h>

Edit: I carefully read your question. There is no ABPersonRef type (at least not publicly available) in the iPhone SDK. You must work with the type ABRecordRef, which is common for both person records and the group - as you can see, all AB *** methods work with the type ABRecordRef.

+1
source

You will also need to connect with the AddressBook infrastructure and

#import <AddressBook/AddressBook.h>
+1
source

Source: https://habr.com/ru/post/1729557/


All Articles