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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T20:14:10+00:00 2026-05-28T20:14:10+00:00

a UIScrollView works just fine by it’s self (in IB). However, once you put

  • 0

a UIScrollView works just fine by it’s self (in IB). However, once you put the UIScrollView inside of a UIVIew in IB, it no longer works. I’m doing this with no subclassing so what’s the deal?

Answer

  • You have to make sure Autoresize Subviews is checked on the containing UIView.
  • The next part is a bit of a hack. You need to assign a new frame to the containing UIView as well. However, the new frame CANNOT be the pre-existing size of your UIView. It must be a different size for this to work.

If you want the size contained on your UIView in InterfaceBuilder then you need to do something like this:

self.frame = CGRectMake(0,0,0,0);
self.frame = [put your desired rect size here];
  • 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-28T20:14:11+00:00Added an answer on May 28, 2026 at 8:14 pm

    Have you tried returning NO in touchesBegan if the touch falls inside your scroll view’s frame?

    Edit:
    Make sure you set the scroll view’s content size ([[self scrollView] setContentSize:CGSizeMake(320,480)]; – the values do not matter) and make sure you check “Bounce Horizontally” and/or “Bounce Vertically” (depending on which you want) as well as “Bounces”:

    Bounce Settings Screenshot

    • 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 a UIView inside. I want to lock the x-axis
I have a UIView inside of a UIScrollView that I want to resize. I
i just noticed, having a backgroudn image inside of a UIScrollView along with some
I have created sample circular UIScrollview.it works fine.but i want to scroll through NSTimer
I have a UIScrollView, inside it, a small UIView containing a UIPickerView. I'm able
I have a UIViewController, on top I put an UIImageView, then a UIScrollView. I
I have a UIScrollView which contains some small UIView subclass. UIScrollView is scroll enabled,
I have a UIScrollView subclass that I am programmatically scrolling using UIView animations. I'd
I'm trying to put some json images into a UIScrollView and i'm hitting a
I had an nice UIScrollView inside my nib, which worked nicely. Then I had

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.