Re: [iPhone] WebView and problem with rotation
Re: [iPhone] WebView and problem with rotation
- Subject: Re: [iPhone] WebView and problem with rotation
- From: Bob Barnes <email@hidden>
- Date: Wed, 7 Oct 2009 21:33:40 -0700
Bartosz,
It's a little difficult to know for sure without seeing your code,
but your comment that "I change a size of webview" makes me a bit
suspicious that you're not letting autoresizing do the work for you. I
have an app that uses a webview to display a pdf and it resizes
properly when switching between portrait and landscape without any
overt sizing action on my part. The trick is to set the
autoresizingMask property correctly to expand or contract to fill the
view.
Bob
On Oct 6, 2009, at 3:12 AM, Bartosz Białecki wrote:
Hi,
I have a problem with rotation. I have one root controller which switch
between two views. In one of these views I have a webview control. In
webview I show a tif or pdf file which size is bigger than window, so
webview added scroll. The problem is when I rotate a device to
landscape, I change a size of webview but scroll stays at position like
in portrait mode. Does anybody know why?
Best regards
Bartosz Bialecki
----------------------------------------------------
Wygraj wymarzony skuter!
Wyznacz najprostszą drogę - docelu.pl - Kliknij:
http://klik.wp.pl/?
adr=http://corto.www.wp.pl/as/chapman1.html&sid=863
_______________________________________________
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
_______________________________________________
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