Set the color to WKInterfacePicker (text or outline)

Does anyone know how to set the text color or style color of a style style WKInterfacePicker?

I do not see this Interface Builder, can I find any property elements in the code where I can set it.

Here is IB:

enter image description here

+2
source share
1 answer

You cannot change the default collector color.

But you can manipulate the views so that they look like this without slowing down the application. enter image description here

I created this with 2 WKInterfaceGroupvertically aligned. The group on top has WKInterfaceLabelfor the custom label labels, and the group below has WKInterfacePicker. WKInterfacePickerconfigured as such:

Style: List 
Focus Style: None
Indicator: Disabled 

, .

WKInterfaceGroup . WKInterfaceGroup , .

pickerDidFocus pickerDidResignFocus, WKInterfaceGroup , WKInterfaceGroup .

picker action , .

, WKInterfacePicker, .

+5

Source: https://habr.com/ru/post/1609892/


All Articles