Re: UIWebView content not scrollable though it should be
Re: UIWebView content not scrollable though it should be
- Subject: Re: UIWebView content not scrollable though it should be
- From: Kyle Sluder <email@hidden>
- Date: Tue, 15 Jan 2013 13:41:39 -0800
On Tue, Jan 15, 2013, at 01:29 PM, Tino Rachui wrote:
> I've come across a weird problem with UIWebView on an iOS 6 iPhone
> project. I load a web page which is long enough so that I need to scroll
> vertically to see all content. For strange reasons though UIWebView
> sometimes wont let me scroll vertically. I've tracked to problem down so
> far that I think it has to do with the contentSize of the embedded
> scrollview of UIWebView. Sometimes the contentSize becomes {0, 0}. This
> happens rather reproducible after dismissing a modal view controller
> presented above the view controller containing the web view.
> So far I found no other work around to alleviate the problem than KVO'ing
> the contentSize property of the aforementioned scrollview and triggering
> a reload of the web view content once I've detected it became {0,0}.
> Needless to say that I'm not happy with this kind of hack.
If you set a breakpoint for when the observer detects the contentSize
has gone to {0,0}, is there any useful information in the stack trace?
What if you ask the web view's scrollView for its
-constraintsAffectingLayoutForAxis: in the vertical axis? Or if that
doesn't yield any useful info, what if you enumerate the scrollView's
subviews?
--Kyle Sluder
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden