I need to listen to the position on the screen of a specific UIView. I need to know when this view goes in / out of the screen. This view can be embedded everywhere. So I can't listen to it's frame or bounds because in a scrollview or a cell, my view can go out of the screen, and this frame won't change. I also can't listen to the contentOffset of each scrollview in the view hierarchy because my specific view can be embedded in a simple container view that I can translate.
My only solution is to use a timer, and compute the position on the screen each x seconds, but I don't want to use a timer. Do you have a better idea? Is it possible to detect when a view is moving on the screen even if its frame doesn't change? Override drawRect?