OGeek|极客世界-中国程序员成长平台

标题: ios - WKInterfaceTable 中的 WKInterfaceButton 事件处理 [打印本页]

作者: 菜鸟教程小白    时间: 2022-12-13 10:51
标题: ios - WKInterfaceTable 中的 WKInterfaceButton 事件处理

我有一个带有 WKInterfaceButtonWKInterfaceTable 表格 View 。

如何从表格 View 向按钮添加目标操作。由于没有标签属性,我无法处理它。



Best Answer-推荐答案


如果您的 WKInterfaceButton 包含在行 Controller 中,这里有一种方法可以确定点击了哪一行的按钮:

我在自己的 Watch 应用中使用了这种技术,效果很好。

关于ios - WKInterfaceTable 中的 WKInterfaceButton 事件处理,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30391698/






欢迎光临 OGeek|极客世界-中国程序员成长平台 (http://sqlite.in/) Powered by Discuz! X3.4