Re: Debugging uiscrollview not responding to user
Re: Debugging uiscrollview not responding to user
- Subject: Re: Debugging uiscrollview not responding to user
- From: Conrad Shultz <email@hidden>
- Date: Wed, 23 May 2012 15:51:36 -0700
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.)
--
Conrad Shultz
Synthetiq Solutions
www.synthetiqsolutions.com
_______________________________________________
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