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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T01:37:40+00:00 2026-06-10T01:37:40+00:00

I have a UIScrollView on my UIViewController . I have the following options set:

  • 0

I have a UIScrollView on my UIViewController. I have the following options set:

  1. Shows Vertical Scrollers
  2. Scrolling Enabled

It DOES NOT scroll. When I set the following:

  1. Bounces Zoom
  2. Bounces
  3. Bounce Vertically

It scrolls but with bouncing… Is there something I am missing? Why is it that with scrolling enabled it doesn’t scroll??

[EDIT]

I was having some issues with it, but got it to work by setting the contentSize. My question however is this, I have a screen with all sorts of content, buttons, text, labels, etc. How is it possible to calculate (accurately) of the size of everything? Is there a way for it to automatically tell how much length the scrollview should grow?

  • 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-10T01:37:42+00:00Added an answer on June 10, 2026 at 1:37 am

    I dont think there is an automatic way of resizing the contentSize to the subviews you have. If you are using Interface Builder and the content is not dynamic then setting the content size should be relatively easy. If not, your going to have to resize it manually.

    You should be able to calculate the size by obtaining the frames of your object ([myView frame]).

    You could write a method that checks the frames of all your subviews and resize the contentSize accordingly. Assuming you are placing your subviews in vertical order. taking the last Views frame’s y position + it’s height (view.frame.origin.y + view.frame.size.height could be your contentViews height and so on…

    hope this helps.

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

Sidebar

Related Questions

I have a UIScrollView inside a UIViewController. It has scrolling and zooming enabled. It
Following Scenario: I have a = UIViewController A that contains a UIScrollView I have
I have a UIViewController subclass which has the view property set to a UIScrollView
I have a custom UIViewController subclass controlling a UISCrollView containing an UIImageView, set up
I have a UIScrollView that shows vertical data, but where the horizontal component is
I have an application where I'm trying to pass a UIScrollView from one UIViewController
I have UIScrollView in my view. Problem is that if I slightly scroll it
I have a UIScrollView and I want it to be able to scroll in
I have a UIViewController, on top I put an UIImageView, then a UIScrollView. I
I have a UIViewController that implements a UIScrollView with the UIScrollViewDelegate. Attached to it

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.