• 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: Bartosz Białecki <email@hidden>
  • Date: Thu, 08 Oct 2009 09:03:10 +0200
  • Organization: Nowa Poczta Wirtualnej Polski S.A. http://www.wp.pl/

Hi,
I use this in my code:
webView.autoresizesSubviews = YES;
webView.autoresizingMask = (UIViewAutoresizingFlexibleHeight |
UIViewAutoresizingFlexibleWidth);
but I think there is no any bug in my code, because I created a new
project, which has only webview and open any website in it. When I click
text input in that site and keyboard appeared and then I closed that
keyboard and roatetd to landscape, the same problem occured. Maybe this
is bug in webview control or I missing some another parameters?


> 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
> >

----------------------------------------------------
10 minut do cennych nagród, wykorzystaj szansę!
Kliknij:
http://klik.wp.pl/?adr=http://corto.www.wp.pl/as/pentagon2.html&sid=877


_______________________________________________

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

References: 
 >[iPhone] WebView and problem with rotation (From: Bartosz Białecki <email@hidden>)
 >Re: [iPhone] WebView and problem with rotation (From: Bob Barnes <email@hidden>)

  • Prev by Date: Re: Problems calling a method from an IB-created instance...
  • Next by Date: Re: Session log-out on Snow Leopard
  • Previous by thread: Re: [iPhone] WebView and problem with rotation
  • Next by thread: Re: grouping undo across method calls in CoreData [with possible solutions]
  • Index(es):
    • Date
    • Thread