By default passes are loaded in PKAddPassesViewController
. Is there any way to know which button is pressed on the view.
//this method runs when user either click on the cancel or add button
-(void)addPassesViewControllerDidFinish: (PKAddPassesViewController*) controller
{
[self dismissViewControllerAnimated:YES completion:nil];
}
I want to get the title of the button that is pressed in the PKAddPassesViewController
. I have tried the below code to access the title but i am getting null
.
NSLog(@"Title of button %@",controller.navigationController.navigationItem.rightBarButtonItem.title);