• 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
UIWebView content not scrollable though it should be
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

UIWebView content not scrollable though it should be


  • Subject: UIWebView content not scrollable though it should be
  • From: Tino Rachui <email@hidden>
  • Date: Tue, 15 Jan 2013 22:29:45 +0100

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.

BTW: I'm using a storyboard and autolayout in case this is important in any sense.

Has anybody any idea? I would appreciate it so much!

Thanks
Tino




_______________________________________________

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

  • Follow-Ups:
    • Re: UIWebView content not scrollable though it should be
      • From: Kyle Sluder <email@hidden>
  • Prev by Date: NSRuleEditor help?
  • Next by Date: Re: UIWebView content not scrollable though it should be
  • Previous by thread: NSRuleEditor help?
  • Next by thread: Re: UIWebView content not scrollable though it should be
  • Index(es):
    • Date
    • Thread