UIAlertView in landscape mode

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

+2


source to share


1 answer


Add the following code to applicationDidFinishLaunching in your applicationdelegate.m file



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

      

+2


source







All Articles