Skip to main content

Posts

Showing posts with the label recordid addressbook

Find a person using his addressbookrecordID only !!!

HI All, Today i implement a good thing that i think i should post on the blog i make a function by whcih you can display address book full information just using the  RecordID of a user in addressbook here is the function by which you can just fetch all information about a person if you have only his recordID from address book .     ABAddressBookRef ab = ABAddressBookCreate ();     ABPersonViewController *navCtlr = [[ ABPersonViewController alloc ] init ];          ABRecordRef person = ABAddressBookGetPersonWithRecordID (ab, RecordID );      navCtlr . displayedPerson = person;      navCtlr . addressBook = ab;     navCtlr. allowsEditing = YES ;     [[ self navigationController ] pushViewController : navCtlr  animated : YES ]; this will open the controller that will have full information against the record id of that particular user. Thanks,