Landscape view drawing as if in portrait mode
Landscape view drawing as if in portrait mode
- Subject: Landscape view drawing as if in portrait mode
- From: Ian was here <email@hidden>
- Date: Thu, 31 Dec 2009 17:21:53 -0800 (PST)
I am developing an application which has several views. All of which need to be viewed in landscape mode. I set the UIInterfaceOrientation property to UIInterfaceOrientationLandscapeLeft in the pList. Also overridden the following method:
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
// Return YES for supported orientations.
return ( interfaceOrientation == UIInterfaceOrientationLandscapeLeft );
}
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.
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
_______________________________________________
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