模拟详细披露按钮preSS [英] Simulate a Detail Disclosure Button press

查看:151
本文介绍了模拟详细披露按钮preSS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有谁知道的方式来模拟pressing一个细节披露按钮?

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

推荐答案

我用下面来模拟一个表行点击:

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.

这篇关于模拟详细披露按钮preSS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆