Note that there are some explanatory texts on larger screens.

plurals
  1. POWhy does my UIWebView only display the first 512 pixels of content?
    primarykey
    data
    text
    <p>I'm having a really confusing problem. I have a UIWebView that is contained within a UIScrollView (I'm using a UIWebView because there are some hard returns that need to be displayed) and to ensure that the app looks "clean" I'm using [UIWebView sizeToFit] after the content of the WebView had loaded.</p> <p>The problem is that the content is quite large (they are film reviews from a pre-existing website), and after a certain number of pixels (about 512) the WebView just stops drawing. It does, however, correctly adjust the height of the view.</p> <p>Some Additional Information:</p> <p>The WebView needs to be of variable size</p> <p>Even if I set the size manually to be that large, the issue still occurs (not just when I use SizeToFit)</p> <p>I cannot just use the scrolling ability of the WebView because there is content above and below it that means that it has to be contained within a ScrollView (I would use a label, but there are hard returns in my text)</p> <p>I don't think there is anything wrong with my HTML, I will post what I have, below:</p> <p> body { background-color: transparent; margin-left: 5px; margin-right: 5px; font-family: Georgia, sans-serif; font-size: small; } CONTENT GOES HERE GATHERED FROM AN NSSTRING IN AN OBJECT I CREATED </p> <p>I tested using a standard view (instead of a ScrollView) and this <em>only</em> happens when the WebView's height is greater than 512 pixels. Anything less than that and it renders all content perfectly</p> <p>Any ideas? Thanks for your help!</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload