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!
Swipe down from the top-right corner of your screen to open Control Center. Tap the Portrait Orientation Lock button to make sure that it's off.
If you want to disable landscape orientation for both iPhone and iPad. Go to Targets and Go to the General tab. See the below screen and deselect landscape left and landscape right.
Check Rotation Lock On an iPhone with a Home button, swipe up from the bottom of the screen to access it. On an iPhone without a Home button, swipe down from the top-right corner of the screen instead. Here, tap on the rotation lock icon (which looks like a lock with a circular arrow) to turn it on or off.
In Info.plist expand "Supported interface orientations" and remove Landscape items to make your application only run in portrait mode.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With