• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: iPhone: Having a touch point want to find layer it is in
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Subject: Re: iPhone: Having a touch point want to find layer it is in
  • From: David Duncan <email@hidden>
  • Date: Mon, 16 Nov 2009 09:40:29 -0800

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 a bit with 'hitTest' but in vain so far. Maybe I'm doing
> something fundamentally wrong. Suggestions much appreciated.


What is wrong with -hitTest:? It is exactly what you should be using.
--
David Duncan
Apple DTS Animation and Printing

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >iPhone: Having a touch point want to find layer it is in (From: Tino Rachui <email@hidden>)

  • Prev by Date: Re: Authorization Samples for Cocoa?
  • Next by Date: Re: Authorization Samples for Cocoa?
  • Previous by thread: iPhone: Having a touch point want to find layer it is in
  • Next by thread: Tracking Safari usage through a background process or dameon
  • Index(es):
    • Date
    • Thread