具有仪器自动化功能的配件按钮
我正在编写一些自动化 .js 文件,我需要从一个单元格中点击我的accessoryButton 之一。
我怎样才能向它发送点击消息?
这是一个自定义单元格,但accessoryButton是由iOS添加的,而不是我添加的,而且我不知道它的名称。
另外,在文档中我找不到任何内容...
我正确引用了单元格,因为我可以更改文本字段值。
预先感谢,
问候
I'm writing some automation .js file, and I need to tap one of my accessoryButton from one cell.
How can I send the tap message to it ?
This is a custom cell, but the accessoryButton is added by iOS, not by me, and I don't know wich name it has.
Also in the docs I couldn't find anything ...
I have the cell referenced correcly as I can change the textField value for example.
Thanks in advance,
regards
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我会看一下
UIATableCell
上的buttons
属性。这应该会为您提供单元格中的按钮,您可能可以从那里访问accessoryButton。UIATableCell
似乎没有accessoryButton的特定属性(参见此处)。来源: Apple UIAElement 文档
I would take a look at the
buttons
property on yourUIATableCell
. That should give you the buttons in your cell and you can probably get to the accessoryButton from there.UIATableCell
does not seem to have a specific property for the accessoryButton (cf. here).Source: Apple UIAElement Documentation