• 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: Alexander Spohr <email@hidden>
  • Date: Thu, 10 Dec 2009 08:12:47 +0100

Um, have to follow up to myself...

Am 10.12.2009 um 08:02 schrieb Alexander Spohr:

> Am 10.12.2009 um 04:34 schrieb Eric E. Dolecki:
>
>> 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.
>
> Usually the superview of the buttons would handle swipes.
> If you have buttons put them on top (as a subview) of your swipe receiver.
>
> Or - as was pointed out - let the controller catch all touches.

If your swipe view and buttons are in the same hierarchy

- (void)bringSubviewToFront:(UIView *)view
- (void)sendSubviewToBack:(UIView *)view

should help.

But as these are in the docs of UIView I am sure you already found them. ;)

	atze

_______________________________________________

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: "Eric E. Dolecki" <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>)
 >Re: Question about touchesBegan (From: "Eric E. Dolecki" <email@hidden>)
 >Re: Question about touchesBegan (From: Alexander Spohr <email@hidden>)

  • Prev by Date: Re: Question about touchesBegan
  • Next by Date: Re: Tracking Multiple Touches For Appropriate Label
  • Previous by thread: Re: Question about touchesBegan
  • Next by thread: Re: Question about touchesBegan
  • Index(es):
    • Date
    • Thread