• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: UIWebView content not scrollable though it should be
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >UIWebView content not scrollable though it should be (From: Tino Rachui <email@hidden>)

  • Prev by Date: UIWebView content not scrollable though it should be
  • Next by Date: Re: AppleScript in Sandboxed App
  • Previous by thread: UIWebView content not scrollable though it should be
  • Next by thread: 14799 expected memory Leaks in Cocoa.framework?
  • Index(es):
    • Date
    • Thread