When I display an ABPersonViewController
, I need a button that allows me to dismiss it and return to the previous screen. How do I add this?
How to add a return button for ABPersonViewController's navigationbar?
2.5k Views Asked by pcjbird At
2
There are 2 best solutions below
1

As variant:
ABPersonViewController *personView = [[ABPersonViewController alloc] init];
[self.navigationController pushViewController:personView animated:YES];
personView.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"return" style:UIBarButtonItemStyleBordered target:self action:@selector(action:)];
Oh, I got the answer.