UIWebView content not scrollable though it should be
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