• 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: Question about touchesBegan
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Question about touchesBegan
      • From: Alexander Spohr <email@hidden>
References: 
 >Question about touchesBegan (From: "Eric E. Dolecki" <email@hidden>)
 >Re: Question about touchesBegan (From: Alexander Spohr <email@hidden>)
 >Re: Question about touchesBegan (From: Jack Carbaugh <email@hidden>)
 >Re: Question about touchesBegan (From: glenn andreas <email@hidden>)
 >Re: Question about touchesBegan (From: "Eric E. Dolecki" <email@hidden>)
 >Re: Question about touchesBegan (From: "Henry McGilton (Boulevardier)" <email@hidden>)

  • Prev by Date: Re: Question about touchesBegan
  • Next by Date: Leopard for development / testing.
  • Previous by thread: Re: Question about touchesBegan
  • Next by thread: Re: Question about touchesBegan
  • Index(es):
    • Date
    • Thread