Example: I have CGPoint in window coordinates:
CGPoint windowPoint = CGPointMake(220.0f, 400.0f);
There is aViewone that has a supervisor in a supervisor in supervision. Somewhere deep in the hierarchy of ideas, perhaps even several times transformed.
When you get UITouch, you can request it for -locationInView: and it will return the coordinates relative to this view.
I need almost the same thing. Is there an easy way to do this?
source
share