How to hide navigation bar back button?

后端 未结 4 922
借酒劲吻你
借酒劲吻你 2020-12-30 00:55

I\'m trying to to hide navigation bar back button on an Apple Watch. There are a lot of questions for similar to mine but they are for iPhone and if you are know a little ab

4条回答
  •  攒了一身酷
    2020-12-30 01:40

    If you remove the back button, how are you planning to go back to previous screen?

    This are my observations on navigation buttons in Apple Watch: Till now, we haven't found any method to over-ride the back-button title or remove it. Even they have provided option to add title, but no way to customize the font or anything. Most probably when Apple releases the original version they will provide all options.

    UIKit and WK-kit In UIKit you can actually hide it using hidesbackbutton property, but in watch it will show you the previous interface controllers title. In UIKit, we are using UIViewController, but in Watch it is WKInterfaceController.

    Inheritance

    NSObject -> WKInterfaceController

    NSObject -> UIResponder -> UIViewController

提交回复
热议问题