iphone landscape problems
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