Re: Debugging uiscrollview not responding to user
Re: Debugging uiscrollview not responding to user
- Subject: Re: Debugging uiscrollview not responding to user
- From: Rick Mann <email@hidden>
- Date: Wed, 23 May 2012 15:53:06 -0700
On May 23, 2012, at 15:51 , Conrad Shultz wrote:
> On 5/23/12 3:24 PM, Rick Mann wrote:
>> I've got a UIScrollView that's supposed to page horizontally. It
>> works correctly if programmatically scrolled, but user touches to
>> scroll it are getting eaten by something else.
>>
>> Is there any way to debug the touches, and see who's getting them?
>> This used to work, but I've been doing some other work and hadn't
>> noticed that this broke. I've got 45 minutes left to fix this, and I
>> don't know what to look for.
>
> Well, first check that you didn't accidentally setUserInteractionEnabled:NO.
>
> You could try breaking on, e.g., touchesBegan:withEvent: and see who's
> eating the touches, if that's the problem.
>
> Though with such little time left (ah, deadlines), I'd probably just do
> a binary search through all the old commits of the code until I found
> the commit that broke it, then do a diff. Not particularly elegant, but
> often quite fast for tracking these sorts of bugs down. (Both hg and
> git have a "bisect" feature designed to facilitate this.)
Yeah, I didn't want to have to do that. :-)
Fortunately, I found it. I tried disabling gesture recognizers (they're so greedy) until the normal scrolling worked, but that didn't do it. So I deleted the GRs until it started working. It was a tap GR, which I replaced with a button.
Thanks, though!
--
Rick
_______________________________________________
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