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 .
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,
Comments
Post a Comment