Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7934295
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T21:36:19+00:00 2026-06-03T21:36:19+00:00

Note: This is not a performance problem! I am aware of the benefits of

  • 0

Note: This is not a performance problem! I am aware of the benefits of cell dequeuing in UITableView.

For testing I created a UIScrollView with some simple opaque UIView subviews which have a black background color on a white scroll view, and 100 points spacing between them so there is something to scroll. Very light-weight. Nothing else. Really trust me, it is not heavy.

I notice a huge difference between beginning to scroll a scroll view and beginning to scroll a table view.

When I touch down on the scroll view and immediately begin to drag, it lags behind by about 0.25 seconds and then suddenly catches up. From there it is fluid, no lags anymore until I touch up and touch down again.

On a much, much bigger and more complex UITableView when I do the same thing there is no initial delay of 0.25 seconds before it begins scrolling.

I tried to alter every property possible but just cannot eliminate this stupid delay. I believe it has to do with the scroll view wanting to figure out if a touch is meant to happen on a subview, and then sees if user moves it’s finger too much. Then it begins scrolling.

Now the crazy thing is UITableView is a UIScrollView itself and I want to make my UIScrollView start scrolling as fast as a UITableView. How?

Edit: Sh.. I found something CRAZY!

NSLog(@"GR = %@", self.gestureRecognizers);


GR = (

"<UIScrollViewDelayedTouchesBeganGestureRecognizer: 0x13e930; 
state = Possible; 
delaysTouchesBegan = YES; 
view = <TestScrollView 0x13e380>; 
target= <(action=delayed:, target=<TestScrollView 0x13e380>)>>",

"<UIScrollViewPanGestureRecognizer: 0x13ee00; 
state = Possible; 
delaysTouchesEnded = NO; 
view = <TestScrollView 0x13e380>; 
target= <(action=handlePan:, target=<TestScrollView 0x13e380>)>>"

)

This is iOS 4, and there is no panGestureRecognizer property in iOS4. The most suspicious is UIScrollViewDelayedTouchesBeganGestureRecognizer with delaysTouchesBegan. Damn!
How can I set that to NO in iOS4?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T21:36:21+00:00Added an answer on June 3, 2026 at 9:36 pm

    EDIT:

    I have found this answer in S.O.

    Basically, you could try subclassing UIScrollView and overriding touchesShouldCancelInContentView so that it returns always NO:

    - (BOOL)touchesShouldCancelInContentView:(UIView *)view
    {
          return NO;
    }
    

    PREV ANSWER:

    I tried to alter every property possible but just cannot eliminate this stupid delay. I believe it has to do with the scroll view wanting to figure out if a touch is meant to happen on a subview, and then sees if user moves it’s finger too much. Then it begins scrolling.

    I think this is the right hypothesis. Indeed, the responder chain and event management is designed to work in a way that the most-specific view is the one to receive the notification of the event; during this process, each view in the responder chain is asked until the deepest one is found.

    Touch events. The window object uses hit-testing and the responder chain to find the view to receive the touch event. In hit-testing, a window calls hitTest:withEvent: on the top-most view of the view hierarchy; this method proceeds by recursively calling pointInside:withEvent: on each view in the view hierarchy that returns YES, proceeding down the hierarchy until it finds the subview within whose bounds the touch took place. That view becomes the hit-test view.

    (source)

    Possibly UITableView does something to alter this behavior.

    Making your scroll view the first responder:

     [scrollView becomeFirstResponder]
    

    will not work, since this affects only the dispatch of non-touch events.

    You could try though making the inner view not touch enabled and see if that makes a difference.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

[Note: There is another thread about this problem but it did not answer the
Note: this is not real information: $ ssh-keygen -t rsa -C "tekkub@gmail.com" Generating public/private
Note: this is NOT about concurrency. This is about the thread macro. I know
Please note this is not a question about online/hosted SVN services. I am working
Please note that this is not homework and i did search before starting this
Screenshot Important Note : This application does not support Internet Explorer. I will be
(note that this question is not about CAS, it's about the May fail spuriously
Note: This is similar to this question but it is not the same. I
Please note: This is a question about the Eclipse plugin Subversive , and not
System.Diagnostics.Contracts.ContractException is not accessible in my test project. Note this code is purely myself

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.