• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: [iPhone] WebView and problem with rotation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: [iPhone] WebView and problem with rotation
      • From: Bartosz Białecki <email@hidden>
References: 
 >[iPhone] WebView and problem with rotation (From: Bartosz Białecki <email@hidden>)

  • Prev by Date: Re: app delegate +initialize
  • Next by Date: Re: app delegate +initialize
  • Previous by thread: [iPhone] WebView and problem with rotation
  • Next by thread: Re: [iPhone] WebView and problem with rotation
  • Index(es):
    • Date
    • Thread