iOS - debugging tool to detect view touched

Wondering if anyone has written or come across a good way to log to the console the view that a touch occurred in. I know touchesEnded: can be implemented, but my problem is that something mysterious is blocking touches on my views and I don't know what it is. I would just like to know what is intercepting the touches.

I would like to log to the console:

"Touch occurred in view: nameOfSomeUIView"

7
задан sol 2 September 2010 в 17:53
поделиться