Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UIWebView won't scroll till the end / bottom

I have the same problem as described here: UIWebView doesn't scroll to the bottom of the webpage loaded/created (unfortunately nobody answered there)

I have a UIWebView with inside UIView, and it doesn't scroll to the bottom, it's actually possible to scroll it but it is bouncing back again, so I can't see about bottom 100 px of my WebView, what can it be?

Thank you

like image 727
Burjua Avatar asked Jul 20 '10 13:07

Burjua


2 Answers

Sorry guys, was my fault, I just had to reduce the height of the WebView

like image 82
Burjua Avatar answered Oct 22 '22 01:10

Burjua


I got this problem today. I had set the constraints wrt iPhone 4 inch screen. So when I executed the app on iPhone 3.5 inch screen, it didn't show the bottom part.

The solution was to go to the Interface Builder and click the button to go to 3.5 inch form factor. (the one which alternates between 3.5 and 4 inch form factor).

Then select 'Webview'.

Editor > Resolve Autolayout Issues > Add missing constraints

This solution is for Xcode 5.

like image 31
Bilbo Baggins Avatar answered Oct 22 '22 03:10

Bilbo Baggins