Bryan Cimo
Bryan Cimo

Reputation: 1308

Simulate a Detail Disclosure Button press

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

Upvotes: 1

Views: 1398

Answers (1)

Alistair
Alistair

Reputation: 1326

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.

Upvotes: 2

Related Questions