开发者

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.

Layout issues with web views when changing iPad orientation

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:

Layout issues with web views when changing iPad orientation

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?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜