Re: Question about touchesBegan
Re: Question about touchesBegan
- Subject: Re: Question about touchesBegan
- From: "Eric E. Dolecki" <email@hidden>
- Date: Wed, 9 Dec 2009 22:34:21 -0500
Well - I wonder if it's possible to enable touches in a sub view but not for
the entire view - just part of it.
I have a view with buttons in it. I call up a sub view that requires touches
for swiping... I want the buttons in the view below to still register touch
events for that entire view.
On Wed, Dec 9, 2009 at 9:32 PM, Henry McGilton (Boulevardier) <
email@hidden> wrote:
>
> 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
>
>
>
>
>
--
http://ericd.net
Interactive design and development
_______________________________________________
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