views:

487

answers:

1

In my ViewController, I have a UITableView with some custom cells in it. When I touch a cell I want to get the touch coordinates right there into my UIViewController. The problem is, I can only get coordinates from parts of the screen not occupied by the UITableView..., Whenever my touch falls in the parts of the screen with the UITableView, my coords are NSLogged back as (0.000, 0.000). How can I get coordinates of the screen REGARDLESS of whichever view happened to get the touch? Do I start from UIScreen? UIWindow?...

Question: How to get touch coordinates REGARDLESS of what "view" I may have touched?

+1  A: 

You can have UITableView pick touches up and report them to its viewcontroller which can in turn report it to the other view controler, or something of that matter. Im not sure if setting the tableView opaquew will allow touches to go to the underneath touch, but you can try that if you havent.

Daniel
Thanks this helped.
RexOnRoids