WKInterfaceGroup in table highlights contained button on touch down

166 Views Asked by At

I have found if you implement a WKInterfaceTable, the row controller contains a WKInterfaceGroup, and if you add two WKInterfaceButtons to the group, one of which is disabled (or hidden), and you tap down on this button, it will highlight the entire row as if you were touching down on both buttons. This does not occur with a regular WKInterfaceGroup outside of a table. How can one disable this highlight behavior for the entire group in the table row?

Here is an example project that demonstrates the undesired behavior. B2 is disabled, yet touching down on it highlights the entire group. Note that the project should be opened with Xcode 8, as it's a watchOS 3 app.

1

There are 1 best solutions below

0
On BEST ANSWER

Select tableCell in storyboard

remove checkmark from Selectable item

enter image description here

Now you are able to single-tap on button in a row. If you need to get index of tapped button, see my answer here.