How to override the Apple Watch button back to go to the root controller

I am trying to push multiple WKInterfaceControllers

Route: A β†’ B β†’ C β†’ D

I want controller D to have a back button A.

How to override the upper left button on the watch so that I can return to the root controller?

I do not know how to access the button or override the method. All I know is that the code below goes back to the root.

self.popToRootController(); 
+6
source share
2 answers

From everyone I spoke to, this is not possible at this time.

+1
source

This is not possible, but you can do it using the IBAction written below the button
[self pushControllerWithName:@"D" context:nil];

0
source

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


All Articles