I have a UIPopoverController that has the DidDismiss wired up:
popYear.PresentFromBarButtonItem(btnYear,UIPopoverArrowDirection.Any,true);
popYear.DidDismiss += (sender, args) => {
Console.WriteLine("Bye bye");
};
The DidDismiss fires fine when the popover is closed by the user tapping outside the popover.
But, when the popover is closed from with in the viewcontroller that it is hosting, the DidDismiss does not fire:
tbhCLose.Tapped+= () => {
if(PopOver!=null)
PopOver.Dismiss(false); //Won't cause DidDismiss to fire
};
The DidDismiss does not fire when popover.Dismiss is called.
Better option is to listen to the viewconvtroller’s ViewDisappearing and do the updates there”