Given a UITableView
, how can I find the location of a specific UITableViewCell
? In other words, I want to get its frame relative to my iPhone screen, n
If you really need to convert specifically to a point in the window, you could do this:
[yourAppDelegate.window convertPoint:[cell.contentView.center] fromView:[cell.contentView]];
I used the cells center coordinate, but you could use any point you want.
Vladimir is right, watch out for rows that are not visible (or that have been recycled).
-S