Re: iPhone: Having a touch point want to find layer it is in

2009-11-16 Thread David Duncan
On Nov 12, 2009, at 11:53 PM, Tino Rachui wrote: > I have a UIView and a hierarchy of CALayers added to the views layer. When a > touch event occurs I can get the 'locationInView' for instance but what is > the best way to find the top most visible CALayer in the views layer > hierarchy? I played

iPhone: Having a touch point want to find layer it is in

2009-11-13 Thread Tino Rachui
I have a UIView and a hierarchy of CALayers added to the views layer. When a touch event occurs I can get the 'locationInView' for instance but what is the best way to find the top most visible CALayer in the views layer hierarchy? I played a bit with 'hitTest' but in vain so far. Maybe I'm doing s