如何检测在 table 行控制器中添加的 WKInterfaceGroup 上的点击?

How to detect a tap on a WKInterfaceGroup added within a table row controller?

所以这是我的 InterfaceController 层次结构:

-> InterfaceController
      -> Table
            -> RowController
                  -> Group A
                        -> Group B
                              -> Gesture

我还实现了 override func table(_ table: WKInterfaceTable, didSelectRowAt rowIndex: Int) {...}WKInterfaceTable,我正在接收行控制器的选择。但是,我没有收到 B 组的触摸事件(点击事件)。

我已经用点击手势附加了一个 IBAction,当我点击 Groupp B 时应该会调用它。如果我点击外部(意味着,在 A 组),那么它应该调用 table 的 didSelectRowAt: 方法,但现在,它没有调用手势的动作。

还有其他解决方案吗?

临时 我通过将 Group B 替换为 WKInterfaceButton 来实现此目的。所以现在,我可以检测到按钮触摸以及 table 的 didSelectRowAt:。我会等待这个问题的完美解决方案。