• 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: Debugging uiscrollview not responding to user
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Debugging uiscrollview not responding to user (From: Rick Mann <email@hidden>)
 >Re: Debugging uiscrollview not responding to user (From: Conrad Shultz <email@hidden>)

  • Prev by Date: Re: Debugging uiscrollview not responding to user
  • Next by Date: Re: NSMutableData capacity
  • Previous by thread: Re: Debugging uiscrollview not responding to user
  • Next by thread: Transforming UIImage (rotate, translate, scale) and then crop to constant size
  • Index(es):
    • Date
    • Thread