I looked through most of the questions and tried almost everything. But the bad part is that the problem still exists.
I have UIVIewone that always runs in landscape mode, and I present the second view ( detailView) as a full-screen modal view.
detailViewhas UIwebviewon top.
When I present detailViewas a modal view, the web view is displayed in portrait mode.
I return " YES" in shouldAutoRotateToInterfaceOrientation, and also has properties autoresize, autoresizingMaskand scalePageToFit.
When I rotate the device, and when it detailViewis in front, the web view is ordered correctly.
The problem is only what I first imagine modalView.
The rotation of the device adjusts the layout correctly.
source
share