• 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
iphone landscape problems
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

iphone landscape problems


  • Subject: iphone landscape problems
  • From: Memo Akten <email@hidden>
  • Date: Wed, 18 Feb 2009 18:34:29 +0000

Hi All, i have two problems regarding running my app in landscape mode:

1. I would like my app to to start in landscape mode. In my root viewcontroller I have:

- (BOOL)shouldAutorotateToInterfaceOrientation: (UIInterfaceOrientation)interfaceOrientation {
return (interfaceOrientation == UIInterfaceOrientationLandscapeLeft) || (interfaceOrientation == UIInterfaceOrientationLandscapeRight);
}


 In my info.plist I have:
<key>UIInterfaceOrientation</key>
<string>UIInterfaceOrientationLandscapeRight</string>


In my applicationDidFinishLaunching I have:
[[UIApplication sharedApplication] setStatusBarOrientation: UIInterfaceOrientationLandscapeRight animated:NO];


In IB my view is laid out in landscape.

but still when I launch my app it starts in portrait and slides to landscape! Why does it not start directly in landscape?


2. when i create and show a UIAlertView it appears in portrait, even if I am holding my iphone in landscape and the views are in landscape. Is there no way to fix this?


cheers,


Memo (Mehmet S. Akten) www.memo.tv www.twitter.com/memotv www.vimeo.com/memotv


_______________________________________________

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: iphone landscape problems
      • From: Robert Marini <email@hidden>
  • Prev by Date: DeleteKey problem
  • Next by Date: Re: Moving oneself to /Applications (or ~/Applications)
  • Previous by thread: Re: DeleteKey problem
  • Next by thread: Re: iphone landscape problems
  • Index(es):
    • Date
    • Thread