Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

When presenting a WKInterfaceController, how can I change the color of the title used to dismiss the controller?

In my watch app, after presenting a controller with presentControllerWithNames:contexts:, is it possible to change the color of the title in the status bar? For example, in Apple's WatchKit Catalogue sample they have a controller they present modally with "Dismiss" set as the title. In storyboard, the title for this controller appears to have the global tint applied to it, but when running the app in the simulator, the color defaults to white.

If possible, how can I make a presented WatchKit controller respect the global tint color?

edit: Attaching a screenshot for clarity.Apple Watch simulator compared to storyboard interface controller

like image 246
ChrisCorea Avatar asked Feb 18 '15 18:02

ChrisCorea


1 Answers

Yes, Global Tint is the answer.

  1. go to storyboard file
  2. select the interface controller desired to be colored
  3. click 'Utilities'
  4. click 'File Inspector'
  5. Find 'Global Tint', then use 'RGB sliders' under 2nd Tab of the Color pane
like image 72
superZhen Avatar answered Oct 19 '22 02:10

superZhen