I have used ABNewPersonViewControllerDelegate in my project.It pops up new view for adding contact.
-(IBAction)Click:(id)sender
{
ABNewPersonViewController *view = [[ABNewPersonViewController alloc] init];
view.newPersonViewDelegate = self;
UINavigationController *newNavigationController = [[UINavigationController alloc]
initWithRootViewController:view];
[self presentModalViewController:newNavigationController
animated:YES];
}
How to handle cancel and done button?.any example code will be appreciated.thanks in advance
If you read the documentation, you will find that the ABNewPersonViewControllerDelegate
method newPersonViewController:didCompleteWithNewPerson: returns NULL
for the person argument if cancel is pressed.