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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T05:58:48+00:00 2026-05-27T05:58:48+00:00

I have a UIScrollView which starts with a portrait aspect and which I subsequently

  • 0

I have a UIScrollView which starts with a portrait aspect and which I subsequently (after device rotation) move to another frame which is a landscape aspect.

Accordingly the content view (A UIView inside the UIScrollView) is updated and I set the contentSize of the UIScrollview.

The issue is – after rotation – the UIScrollView has a new frame, new content and new contentSize but the area inside which the user can swipe still behaves as if it was the original frame/content.

Image 1 shows the original aspect / Image 2 shows the new aspect with the odd area available to the user for their swipe gestures.

Original aspect of scroll view New aspect

As you might expect I’ve fiddled with quite a few of the settings in the scroll view such as the bounds etc but nothing to date has ‘fixed’ this behaviour.

Any insights into why this behaviour is happening and/or how to set the user interaction area to the frame/bounds of the scroll view would be greatly appreciated.

EDIT2:

There are 3 views in this hierarchy
Lanscape
mainView Frame {0,0,1024,748}
resultsView Frame {633,90,361,677}
scrollView Frame {20,60,340,595}

Portrait
mainView Frame {0,0,532,1240} <— Whoa Horsy – I expected …. {0,0,768,1004}
resultsView Frame {0,659,768,345}
scrollView Frame {0,70,768,280}

At this point I went into every nib in the project and made sure that autoresizes was turned off and I also tagged every view with a different number so that at the time I was checking the frames I could be sure certain definite positive of what I was looking at.

The top level view in the stack WAS autoresizing and now with that turned off I am getting this for the portrait result..

mainView Frame {0,0,768,1004} ….. YES! WIN…..
resultsView Frame {0,659,768,345}
scrollView Frame {0,70,768,280}

EDIT1:

Setting the resizing mask as comments below reduces the visible size of the scrollview to match the interaction area – so making it seem that the scrollview really does think it’s frame is that size only (768 made to look like 468 or so). Increasing the width of the frame does indeed increase the size of the scroll view but there are only 768 pixels for the full width so why should a frame thats 768 wide look like 468 and a frame of 686 look like 568?!

  • 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-27T05:58:49+00:00Added an answer on May 27, 2026 at 5:58 am

    It sounds like you’ve got a superview of your scroll view which isn’t resizing correctly. You could verify this by logging [myScrollView superview] and seeing if that view is resizing as you expect.

    If the superview is not resizing, then it won’t pass touches down to your scrollview, which explains the behaviour you’re seeing. (This also explains why it resizes when you set is autoresizing mask.)

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

Sidebar

Related Questions

I have a UIScrollView which I create and size dynamically using... scrollView.contentSize = CGSizeMake(scrollView.frame.size.width
I have subclassed UIView object inside a uiscrollview which displays a pdf page. I
I have a UIScrollView that contains multiple UITableViews horizontally - all of which are
I have a UIScrollView which contains a sub-UIView, insetView which is used to display
I have a UIScrollView which contains many UIImageView s, UILabels, etc... the labels are
I have a UIScrollView which I am applying a black background, which blends in
I have a UIScrollView which contains some small UIView subclass. UIScrollView is scroll enabled,
I currently have a UIScrollView which has a content size equal to about 50
I have a UIScrollView in which I've set the contentSize to the size of
I have a UIScrollView which contains multiple UIImageViews. I want to know which UIImageView

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.