Question

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

Was it helpful?

Solution 2

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.

https://devforums.apple.com/message/910072#910072

OTHER TIPS

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...

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top