How can I track UI events on Instruments

I am developing an iPhone app, and I would like to see the events that are fired inside of it, for example when a tap on the screen was made, I would like to see the event fired inside instruments and learn how the objects are communicating with each other. I tried to use Instruments to catch events using the cocoa events and it yielded nothing. The process was my app. I am not sure which profiling tool can show me what I need. Any ideas ?


If you want to tap into the event system, you can create a custom subclass of UIWindow and override the sendEvent: method. Then you can use the Xcode debugger to examine the event object. I've used this in the past to log things like touch events.

It's not possible to do this kind of thing using the Instruments tool.

Need Your Help

Call function when a sidekiq-superworker's superjob is completed

ruby-on-rails ruby ruby-on-rails-4 redis sidekiq

I have a setup of two Sidekiq workers in my Rails 4.2 app where the first one performs several jobs and the other one sends en email when all those jobs have been completed. These two are coupled i...

How to find the starting position of UIImageView

ios objective-c uiimageview

Simple question, but hard to find the answer! How can i get the coordinates of my UIImageView?