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 protected])
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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [email protected]