IPhone: UiNavigationController Feedback Button

Possible duplicate:
How to say when the back button is pressed in UINavigationControllerStack

Hi guys, when I click the back button, what is called the delegate method? Best regards Carlos Vargas

+3
source share
2 answers

UINavigationBarDelegate- This is the delegate class, and it implements -navigationBar:shouldPopItem, since these controllers work in stacks that you just click or pop up. This, most likely, will always be evaluated as true, otherwise I feel that the back button, which does anything other than the pop controller, violates the rules of the Apple Human Interface Guidelines.

+6
source

I agree with elsurudo, - (void) viewWillDisappear is also called when switching to the third ViewController, but maybe you want your connection to exist in the third view controller, but not in the first view controller. This way you can detect when the user returns from the second view controller so that you can disconnect normally.

0
source

Source: https://habr.com/ru/post/1730432/


All Articles