• 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
Landscape view drawing as if in portrait mode
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Landscape view drawing as if in portrait mode
      • From: Tony Ingraldi <email@hidden>
  • Prev by Date: Re: NSDocument, NSManagedObjectContext do Stuff in -dealloc, Cause Crash
  • Next by Date: Re: NSDocument, NSManagedObjectContext do Stuff in -dealloc, Cause Crash
  • Previous by thread: Re: NSImage
  • Next by thread: Re: Landscape view drawing as if in portrait mode
  • Index(es):
    • Date
    • Thread