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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T15:36:52+00:00 2026-05-16T15:36:52+00:00

On the iPad, I present a view in the detail side of a split

  • 0

On the iPad, I present a view in the “detail” side of a split view controller that is basically just a UIWebView, which loads an HTML file in the application bundle. The application supports rotation and hides/shows the “master” side of the split as appropriate.

When the UIWebView is initially loaded in landscape mode, its content seems to be “sized” properly… the content is taller than the screen, so you can scroll vertically, but not horizontally. (The HTML content is nearly all text styled with CSS, with only a small ~300×50 image at the bottom.)

If you then rotate the screen to portrait, the HTML content still seems to be sized okay — vertical scrollbar is present, but not horizontal, as it was initially. Rotating back to landscape and everything is still peachy.

So far, so good.

Now, if the UIWebView initially loads in portrait orientation, everything is also “sized” properly (vertical scrollbar, no horizontal). But, if you rotate it to landscape, the content suddenly gets a horizontal scrollbar, because one of the paragraphs of text is wider than the width of the UIWebView. (Not coincidentally, I’m sure, but that long paragraph is sized perfectly for the slightly larger width the UIWebView has when it’s oriented as portrait.)

I was expecting/assuming that rotation of the iPad would cause the UIWebView to have its frame be resized, and when it’s resized, to also resize its HTML content appropriately. (Think of taking a Web browser window and shrinking it.) Why isn’t that happening for me?

I would like to avoid using the “Scales Pages to Fit” property because the text shrinks non-deterministically.

  • 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-16T15:36:52+00:00Added an answer on May 16, 2026 at 3:36 pm

    Just solved my issue with this by adding this HTML5 Viewport meta tag:

    <meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
    

    to the head section of my HTML, maybe a variation of this meta tag may help?

    Although my issue was triggered when my app was started in landscape mode, while yours in portrait mode, it may be a common cause.

    I also had another funny issue with the webView in iPad and the common solution seems to be that meta tag:

    iPad Simulator WebView/Google Maps API Issue

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

Sidebar

Related Questions

I'm working in an iPad app that has a split view with a navigation
I have an iPad application that uses table view controllers to present lists of
I want to present an iPad game which is only playable in portrait mode
I have an iPad app which has a funky Path-style menu which is present
I'm new to using the split view for creating iPad applications. When I first
in my splitviewcontroller iPad app I show a custom popover (which loads the rootviewController).
I want to present a view controller where I have one Background imageView. Alpha
The iPad application I'm working on requires that the user provide a username and
I have an iPhone/iPad app which play a HTTP Live Stream of a tv
I am developing an iPad app that has a large number of UIViewControllers ,

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.