apple Watch: remove status bar for Interface Controller

帅比萌擦擦* 提交于 2019-11-30 02:39:15

问题


Is it possible to remove status bar for a particular Interface Controller or customise Interface controller title text in any way ?


回答1:


As of Apple Watch Programming Guide you can customize interface controller title text color by setting your App’s Key Color.

Every WatchKit app has an associated key color, which is applied to the >following UI elements:

-The title string in the status bar

-The app name in short look notifications

An app’s key color is stored in the Global Tint property of the app’s storyboard. To access this property, select your storyboard and display the File inspector. Select one of several preexisting colors from the popup menu or use the color picker to specify a custom color.

This is all we have as of today.


About if it is possible to hide the status bar... The closer result you will get is by using modal interfaces. In this ones, the clock will be invisible but the status bar will remain there holding the interface title.



来源:https://stackoverflow.com/questions/27938171/apple-watch-remove-status-bar-for-interface-controller

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