Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to hide the back button from the status bar on the Apple Watch?

I want to hide the back button from my Apple Watch app from the status bar.

I used the programmable segue to navigate. But I want to to hide/disable the back button. Is it possible?

like image 655
Manish Gumbal Avatar asked May 12 '15 07:05

Manish Gumbal


People also ask

How do you get to menu on Apple Watch?

Open Control Center: From the watch face, swipe up. From other screens, touch and hold the bottom of the screen, then swipe up. Note: You can't open Control Center from the Home Screen on your Apple Watch.

What does AL mean on Apple Watch?

Use the Activity app on your Apple Watch - Apple Support (AL)


2 Answers

This is how you do it:

WKInterfaceController.reloadRootControllersWithNames(
     ["myInterfaceController"], contexts: []
)

Where myInterfaceController is the identifier of the destination Interface Controller.

Thanks to Harvant for the pointer.

like image 144
infinite-loop Avatar answered Sep 29 '22 01:09

infinite-loop


If you check the docs for WKInterfaceController, you'll see there's no API to accomplish what you're looking for: https://developer.apple.com/library/prerelease/ios/documentation/WatchKit/Reference/WKInterfaceController_class/

The best you can do is change the text of the title/button or adjust the tint color.

like image 32
bgilham Avatar answered Sep 29 '22 01:09

bgilham