Alex Rivera | Logout

Can you disable rotation globally in an iOS app?

Asked 2012-04-12T13:56:50.060
27

I have an app made up of a lot of view controllers... in the project summary I've set Portrait orientation as the only supported device orientation.

However, the app still gets messed up when turned sideways.

My question is, is there a way to globally disable autorotation through app delegate or something?

Or do I have to go into all of my view controllers and add the "shouldAutorotateToInterfaceOrientation" method?

Just don't want to miss adding it to one or something...

Thanks!

Edit
Report

1 Answer

75

In Info.plist expand "Supported interface orientations" and remove Landscape items to make your application only run in portrait mode.

answered 2012-10-26T12:50:31.377

Your Answer