I browsed through most of the questions and tried almost everything. But bad part is that the issue is still there.
I have a UIVIew
which is always launched in landscape mode and I am presenting a second view (detailView
) as a full screen modal view.
The detailview
has a UIwebview
on top of it.
When I present the detailView
as a modal view, the webview is being shown in portrait mode.
I am returning "YES
" in shouldAutoRotateToInterfaceOrientation
and also have set autoresize
, autoresizingMask
and scalePageToFit
properties.
When I rotate the device, and when the detailView
is in front, the webview arranges to landscape properly.
The issue is only when I present the modalView
for the first time.
Rotating the device is adjusting the layout properly.
landscape
orportrait
mode are related toUIViewController
but not toUIView
. So could you clarify what do you mean under portrait mode ofUIWebView
. Which method do you use to showUIWebView
on top ofdetailview
? – onegray