How can I edit top status bar at AppleWatch?

我是研究僧i 提交于 2019-12-22 08:10:50

问题


I'm beginning with WatchKit and I would like to know hoy to edit the aspect of topbar in a AppleWatch app. I would like to change the color and also to hide it in some of my views because I want to focus my user to perform one action.

Thanks!


回答1:


It is impossible to edit the status bar appearance. There are some strong restrictions:

  • Status bar cannot be hidden
  • There are not ability to modify the black background
  • You cannot add or modify the back button or another image

The only thing you can do is to change the title color using tint color in your storyboard and the text both of through storyboard and source code.

Change color

Change text

[self setTitle:@"MyTitle"];


来源:https://stackoverflow.com/questions/29967601/how-can-i-edit-top-status-bar-at-applewatch

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!