Layout issues with web views when changing iPad orientation
I'm having trouble when I flip my iPad app around to landscape mode. When I do this, the formatting of the web views gets all screwed up.
This is when it is in portrait mode. There is a scroll view which is the subview of the view controller, and within the scroll view there are three web views which you can sc开发者_StackOverflowroll between by swiping left and right.
This is what happens when it goes into Landscape mode:
Any ideas as to why this is? All the settings in Interface Builder (the frame margin settings, autoresize subviews, etc.) are all correct, but I can't seem to figure out why it does what it does.
Thanks in advance!
I have experienced the same problem in my previous project. I solved the problem by reloading the content during the didRotateFromInterfaceOrientation callback. Any better solutions?
精彩评论