Re: Landscape view drawing as if in portrait mode
Re: Landscape view drawing as if in portrait mode
- Subject: Re: Landscape view drawing as if in portrait mode
- From: Ian was here <email@hidden>
- Date: Thu, 31 Dec 2009 23:49:54 -0800 (PST)
The autosizing mask doesn't seem to help. To clarify the problem, the device is in landscape mode, the title bar is shown in landscape. The view is not drawing from left to right (480 pixels across), but rather from top to bottom (480 pixels down causing the rendering to go off screen). It's as if it is rendering in portrait mode while in landscape mode.
If you were holding the device so that the home button was on your left, you would see the view as a vertical strip (320 out of the 480 pixels) on the right and a white rectangle filling the rest of the space on the left.
It works fine when I initially attach a view to the view controller, but when releasing it and attaching a new view, it screws up.
Thanks Tony.
--- On Thu, 12/31/09, Tony Ingraldi <email@hidden> wrote:
> From: Tony Ingraldi <email@hidden>
> Subject: Re: Landscape view drawing as if in portrait mode
> To: "Ian was here" <email@hidden>
> Cc: "Apple Developer Mailing List" <email@hidden>
> Date: Thursday, December 31, 2009, 6:34 PM
> Ian,
>
> Are you saying that the view is drawing in the proper
> orientation but it isn't filling the width of the landscape
> display? If this is the case, I would have a look at
> the autoresizing mask settings for the problematic view(s).
> --
> Tony Ingraldi
> http://www.majestysoftware.com/
> Old-fashioned values and high-tech
> know-how
>
>
> On Dec 31, 2009, at 8:21 PM, Ian was here wrote:
>
> > I create a view programmatically, then add it to the
> UIViewController. It works as expected in landscape mode,
> but when I remove it, then add another view, it appears to
> be landscape, yet it draws as if in portrait mode. It
> doesn't matter which view I start with, only the first one
> draws in landscape.
>
>
_______________________________________________
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