Trying to create a object for ABPersonRef example: ABpersonRef ref;
have included Addressbook and AddressBookUI framework even then when i compile it states 'ABPersonRef' Undeclared Identifier
Trying to create a object for ABPersonRef example: ABpersonRef ref;
have included Addressbook and AddressBookUI framework even then when i compile it states 'ABPersonRef' Undeclared Identifier
You will also need to link against AddressBook framework and
#import <AddressBook/AddressBook.h>
Have you added imports to your source file?
#import <AddressBook/AddressBook.h>
#import <AddressBookUI/AddressBookUI.h>
Edit: I've read your question more carefully. There's no ABPersonRef type (at least public) in iPhone SDK. You should work with ABRecordRef type which is generic for both person and group records - as you can see all AB*** methods work with ABRecordRef type.