我正在使用XOD8beta 6为watchOS 3创建一个应用程序。当创建一个带有自定义行的WKInterfaceTable时,我似乎无法让选择生效。
我做了而不是想要执行一个segue,我只是想让didSelectRowAtrowIndex被调用。
设置:
以下函数未被调用:
override func table(_ table: WKInterfaceTable, didSelectRowAt rowIndex: Int)
{print("selected \(rowIndex)")}我的行没有一个segue集,这似乎是其他人遇到的问题。表是我使用push segue打开的视图的一部分。
rootViewController -push-> myViewWithTableController -touchCell->
我遗漏了什么?
发布于 2019-08-26 14:53:36
我在文档中搜索了转换的任何约束,但找不到它。scenes
尝试了一些模式。
如果将Action Segue of tableController从Push更改为Modal,则可以进行转换。
此外,当与Storyboard中的segue连接时,不会调用didSelectRowAt。
https://stackoverflow.com/questions/39331481
复制相似问题