Simulate a Detail Disclosure Button press

五迷三道 提交于 2020-01-15 12:23:51

问题


Does anyone know of a way to simulate pressing a detail disclosure button?


回答1:


I've used the following to simulate a click on a table row:

[self tableView:self.tableView didSelectRowAtIndexPath:[NSIndexPath indexPathForRow:0 inSection:0]];

Perhaps something like this would work?

[self tableView:self.tableView accessoryButtonTappedForRowWithIndexPath:[NSIndexPath indexPathForRow:0 inSection:0]];

Not tried it but assume it should be okay.



来源:https://stackoverflow.com/questions/841270/simulate-a-detail-disclosure-button-press

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!