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 (Cocoa-dev@lists.apple.com)

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 arch...@mail-archive.com

Reply via email to