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

  • Home
  • SEARCH
  • 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 8312787
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T20:16:29+00:00 2026-06-08T20:16:29+00:00

I have UIScrollView with 3 pages. It’s difficult for me to explain my issue,

  • 0

I have UIScrollView with 3 pages. It’s difficult for me to explain my issue, that’s why I will try to explain it comparing with table view.

When you have table view, you can scroll to see space that doesn’t exist. I mean if you see 1 cell, you can scroll down and see white space without cells. I don’t know the definition, that’s why I will call it “Scroll to empty space”.

Now is the question. I want to implement following:
when user sees 1 page, he can’t “Scroll to empty space” and when user is in the last page, he can “Scroll to empty space”

My code is:

    self.scroll = [[[UIScrollView alloc] initWithFrame:CGRectMake(0, 0, size.width, size.height)] autorelease];
    scroll.pagingEnabled = YES;
    scroll.showsHorizontalScrollIndicator = NO;
    scroll.showsVerticalScrollIndicator = NO;
    scroll.scrollsToTop = NO;
    scroll.delegate = self;
    scroll.contentSize = CGSizeMake(size.width * kNumberOfPages, size.height);
    scroll.backgroundColor = [UIColor greenColor];

What properties should I set to provide required functionality.

  • 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-08T20:16:31+00:00Added an answer on June 8, 2026 at 8:16 pm

    That’s called bouncing.

    UIScrollView has a property called bounces that you can set to NO to prevent it from bouncing:

        scroll.bounces = NO;
    

    bounces

    A Boolean value that controls whether the scroll view bounces past the edge of content and back again.

            @property(nonatomic) BOOL bounces
    

    Discussion

    If the value of this property is YES, the scroll view bounces when it encounters a boundary of the content. Bouncing visually indicates that scrolling has reached an edge of the content. If the value is NO, scrolling stops immediately at the content boundary without bouncing. The default value is YES.

    You can set the value of that property to the value you require in your scroll delegate – scrollViewDidScroll: method.

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

Sidebar

Related Questions

I have a UIScrollView with 2 pages, and I can scroll horizontally between them.
I have UIScrollView in my view. Problem is that if I slightly scroll it
I have a page UIScrollView that will scroll 1 page left or right depending
I have 3 pages (page 0, page 1, page 2) in a UIScrollView that
I made an UIScrollView with pages. On Each page I will have an UIScrollView
I have a scroll view with paging control. It loads several pages according to
I have table view in that click any i am displaying data in overlay
I've started implementing a UIScrollView that will contain many thumbnail-sized pictures and will scroll
I currently have a UIView / UIScrollView that is displayed within a modal view.
I have a paging UIScrollView that pages through multiple full screen images. I am

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.