views:

49

answers:

1

So, I have this UITableView. It's in an iPad application. Some of the cells have an accessory button on the right (the small round arrow). When that is pressed, I present a popover view where the user can select actions related to the table cell that they touched. So far, nothing of this is difficult or exceptional.

But the popover view wants to know where it originates from, so that it can draw the little arrow pointing there. I would naturally like that arrow to point at the table cell the popover relates to.

How can I find out the current on screen coordinates for a certain cell in a table, given that I know it's indexPath?

+4  A: 

Use the UITableView method -rectForRowAtIndexPath:.

Noah Witherspoon
My God, it's so simple! I must have been looking in all the wrong places.
calmh