Setting orientation to landscape but UIScreen's mainscreen still portrate
I created a window based application, deleted the MainWindow.xib file and it's entry in project's info list. Then I manually initialise the window in delegate, also, in the delegate's applicationDidFinish... method I set application's orientation to landscape:
[[UIApplication sharedApplication] setStatusBarOrientation:UIInterfaceOrientationLand scapeRight animated:NO];
Also, I've set the InitialInterfaceOrientation to UIInterfaceOrientationLandscapeLeft, the problem is, the emulator starts in landscape mode, but the CGRect returned by [[UIScreen mainScreen] bounds] is still the rect in portrait mode.
Did i make something wrong? Or Did I miss something?
Thanks!
|