Re: Question about touchesBegan
Re: Question about touchesBegan
- Subject: Re: Question about touchesBegan
- From: "Eric E. Dolecki" <email@hidden>
- Date: Thu, 10 Dec 2009 08:46:04 -0500
What I am trying to do now is when I create the subView with the tuner bar,
I am setting it's view's bounds to something much smaller than the whole
screen and then animating it up. I think this approach might work.
On Thu, Dec 10, 2009 at 8:29 AM, Eric E. Dolecki <email@hidden> wrote:
> I'll elaborate a little more. I have a main view with some source buttons
> (UIButton) at the top. When I click one, I bring up a radio style tuner bar
> in a subview (animates up from the bottom). I am using touches to move the
> "pointer" in that subView. Works great, however because the subView is
> detecting touches for the whole subView - it prevents touches on those
> buttons in the main view. Do I simply need to architect this in another way?
> Say create a subview of just the UIButtons at the top of all subViews?
>
> - Eric
>
> On Thu, Dec 10, 2009 at 2:12 AM, Alexander Spohr <email@hidden> wrote:
>
>> 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
>>
>>
>
>
> --
> http://ericd.net
> Interactive design and development
>
--
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