IOS WatchKit - How to determine when the back button is pressed on the back button?

I need to do some cleaning on the second view controller when the back button is pressed on the Apple Watch (arrow). Is there any detection / processing method when I press the back / browse button?

Note. I cannot use the function 'willDeactivate (), because it makes me fixate on what I'm trying to do.

+6
source share
1 answer

There is no way to detect that the back button has been pressed. The correct / only place would be in didDeactivate , although it doesn't seem like this will work for you.

+5
source

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


All Articles