Re: Question about touchesBegan
Re: Question about touchesBegan
- Subject: Re: Question about touchesBegan
- From: "Henry McGilton (Boulevardier)" <email@hidden>
- Date: Wed, 9 Dec 2009 18:32:35 -0800
On Dec 9, 2009, at 5:58 PM, Eric E. Dolecki wrote:
> Is there a way to define the touchesBegan in an added sub view to
> be constricted to a certain area and not allObjects? Thus leaving a "hole"
> to allow touches to be fired on the view below?
If I interpret your question correctly, you want the added sub-view to NOT handle touches?
If so, don't implement the touchesBegan/Moved/Ended methods in that sub-view.
Alternatively, simply disable user interaction for that sub-view.
Even more alternatively, I have found in many cases that handling touches in the View Controller
that manages the view hierarchy makes life easier. You receive a touch and simply ask what
view it landed in.
Cheers,
. . . . . . . . Henry
_______________________________________________
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