iosobjective-cwatchkitwkinterfacelabel

WatchKit detect tap / touch on label / group


I have a nested WKInterfaceGroup with a WKInterfaceLabel within as such:

enter image description here

which looks like that:

enter image description here

the orange highlight indicates which part of the value the user is currently editing. (Backgroundcolor of WKInterfaceGroup)

i am trying to find a way to switch between left/right highlighted and am running into the problem

my question is:

how can i let the user `tap' to select which of the two groups he wants to actively edit?


Solution

  • You can use a WKInterfaceButton instead. Buttons allow you to use a group for their contents instead of a label. Then, hook into the action method of the button.