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 4247914
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T04:10:35+00:00 2026-05-21T04:10:35+00:00

Sorry for the long and self explanatory title, but UIScrollView has raised so many

  • 0

Sorry for the long and self explanatory title, but UIScrollView has raised so many questions that I find it difficult to reach the ones that might help in different situations.

I have nested scrollviews in my iPad app. So far so good, everything has its ups and downs but its quite slick and responsive. My outter scroll view is a paged one, that contains fullscreen or bigger content scrollviews in it. Outter scrollview is horizontal and inner vertical. Like the photo gallery one. I found that when I’m zooming and scrolling the inner scrollview, there’s a noticeable delay in detecting slow and long swipe gestures ONLY when the scrollview has been scrolled down to the bottom of the content and bouncing is OFF.

the other thing is that the inner scrollview bouncing property goes YES/NO pseudo-randomly. So, this is the code in the constructor that set the inner scrollviews that are acting up:

    if (UIInterfaceOrientationIsPortrait(forOrientation)) {
        self.minimumZoomScale = 1.0;
        self.maximumZoomScale = 1.0;    
        self.bounces = NO;
        self.alwaysBounceVertical = NO;
        self.scrollEnabled = NO;
    }else if (UIInterfaceOrientationIsLandscape(forOrientation)){
        self.minimumZoomScale = 1.333333f;
        self.maximumZoomScale = 1.333333f;
        self.bounces = YES;
        self.alwaysBounceVertical = YES;
        self.scrollEnabled = YES;
    }

    self.scrollsToTop = NO;
    self.showsVerticalScrollIndicator = YES;
    self.showsHorizontalScrollIndicator = NO;
    self.directionalLockEnabled = YES;
    self.delegate = self;



    self.pagingEnabled = NO;

    self.canCancelContentTouches = NO;
    self.delaysContentTouches = YES;

When the iPad is rotated bouncing will come and go for the scroll view as well and will have a bouncing glitch too.

Is this a bug ? or is it just me that I’m messing it up?

thanks in advance for your time and interest!

UPDATE:
I’m nesting two scrollviews that are actually Subclasses of UIScrollView. I’m doing this because I need to override hitTest an other methods as well. I also tried the Better solution described here http://openradar.appspot.com/8045239 and did not get any good results.

  • 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-05-21T04:10:36+00:00Added an answer on May 21, 2026 at 4:10 am

    I’m answering my own question.

    Open radar’s bug solution that’s posted on the question post, it’s not very clean on what to isolate in order to stop the uiscrollview from resizing and cancel bounces

    Basically EVERYTHING that can change the view’s frame during layoutSubViews has to be done only ONCE by double checking that if the size is equal to the change that’s coded in layoutSubviews, then that’s not ran more than once.

    -(void)layoutSubviews {
    
    ///...
    
    
    if (!self.bounces) {
                 self.bounces = YES;
            }
            if(!self.scrollEnabled){
               self.scrollEnabled = YES;
            }
            if (!CGSizeEqualToSize(rect.size, self.contentSize)) {
                self.contentSize = rect.size;
            }
     if (self.zoomScale < MAXIMUM_ZOOM_SCALE ) {
    
                [self zoomToRect:ZOOM_RECT_MAKE animated:NO];// otherwise this line of code won't do anything at all
    
    
            }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

this post is a long one sorry for that but the problem is complex
Sorry for the long question title. I guess I'm on to a loser on
Sorry the title isn't more help. I have a database of media-file URLs that
Sorry if the title is poorly descriptive, but I can't do better right now
I think the title is self explanatory. What I'm looking for is material so
Sorry for long winded post. I am trying to understand UIScrollView and running into
First of all, sorry for the too long question. I know that there are
Sorry about this long block of code, but I think it makes sense to
Sorry in advance for the long question. What I'm really interested in is a
Sorry for this not being a real question, but Sometime back i remember seeing

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.