I am making an ipad app, and i set the the app to only portrait, but it still works in landscape? Why is this happening only on an ipad? How do i fix this?
Note: if the answer is in code, please write it in swift.
Go to Targets -> General, scroll down and you can select the Orientation as portrait only.
The developer of the app can determine the supported orientations. If they have decided that landscape isn't supported, then you cannot run it in landscape.
How to rotate the screen on your iPad. Make sure that Rotation Lock is off: Swipe down from the top-right corner of your screen to open Control Center. Then tap the Rotation Lock button to make sure it's off.
In xcode select your project. Go to Targets -> General, scroll down and you can select the Orientation as portrait only.
You can also make change to info.plist file to select proper orientations for Supported interface orientations (iPad)
In deployment Info section you can select your app orientation to support.
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