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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T15:56:53+00:00 2026-05-21T15:56:53+00:00

I have a UIScrollview to allow for pagination, and a UIWebview on the detail

  • 0

I have a UIScrollview to allow for pagination, and a UIWebview on the detail views inside.
I know you are not supposed to do that according to Apples Class Reference, but I don’t see another option.

In order to make responses and experience a bit better, I disabled scrolling of the Webview, with:

[[[webView subviews] lastObject] setScrollEnabled:FALSE];

But now I am looking for a solution to make the webview the right size, depending on the content. Is there an easy way to do this, where the width of the webview stays the same, but the height grows (automatically) when that is required to show the full article?
This will remove the scrolling problem, as it sit he scrollview who will take care of all the scrolling in this scenario.

Does that make sense?

  • 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-21T15:56:53+00:00Added an answer on May 21, 2026 at 3:56 pm

    Sure – this isn’t that uncommon a scenario (needing to figure out the entire height of a UIWebView so you can size it’s frame to avoid the web view itself scrolling, such as when a web view is in a table view, or parent scroll view).

    You should refer to this answer:
    How to determine UIWebView height based on content, within a variable height UITableView?

    Which will basically answer your question. You create your scroll view, load in the content, run some javascript to get the full height, and then adjust the web view frame to reflect the full height of the content.

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

Sidebar

Related Questions

I have a UIScrollview to allow for pagination, and a UIWebview on the detail
I have a horizontal UIScrollview set up (meaning its not one that scrolls up
I have a very simple UIScrollView example that simply doesn't do what it's supposed
I have a UIScrollView that contains an image and a segmented control that allows
I have UIScrollView which i populate with UIImageViews programmatically. After that I change contentSize
I have UIScrollView and number of objects (UIView compositions) with UIImageViews inside them. Some
I have UIScrollView in my view. Problem is that if I slightly scroll it
I have a UIScrollview with a UIImageview inside it showing a floor plan. I
I have a UIScrollView in which I am placing a bunch of views as
I have a UIScrollView that contains a custom UIView. In my UIView 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.