A couple of days after posting here, I posted the same question on Apple's developer forum
https://developer.apple.com/devforums/
and received a terrific solution. Below is a link to that solution by MVC123.
Control push segue button in master/detail template in xcode
-
01-07-2022 - |
Domanda
Using the master/detail template you get an automatic push segue between master and detail views. How do I access the logic of the returning button (as shown on the left of the upper bar in the detail view)? Before I let the user return to the master, I want to apply some checks regarding the work they did while in the detail view. There must be a method for this button that I can somehow override?? thanks
Soluzione 2
Altri suggerimenti
You can catch them if you use
-(void) viewWillDisappear:(BOOL)animated {
//This is called when the user has clicked on the back button in the navigation bar.
}
method...
I hope it helps...
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow