views:

295

answers:

1

I have set my iPhone in the landscape mode but when I try to display the UIAlertView its come in the portrait mode. How it will display in landscape mode?

+2  A: 

Add the following code in applicationDidFinishLaunching in applicationdelegate.m file

[[UIApplication sharedApplication] setStatusBarOrientation: UIInterfaceOrientationLandscapeLeft animated: NO ];

Arman