How to prevent a change in the orientation of alertview when changing the orientation of iOS 8

I am making an application for IOS 8 using Cordova and Xcode 6. I installed the cordova plugin called [org.apache.cordova.dialogs]. My application is designed to work in portrait mode. Now the problem that I am facing is that when the device is rotated, the application remains as the portrait itself, but the alertview rotates. It works great with iOS 7. Is there a way to solve this problem. Any help is appreciated.

thanks

+6
source share
1 answer

You need to install

<preference name="Orientation" value="portrait" /> 

in your config.xml file, and this should sort it, which will allow the OS not to allow any part of the application to rotate to landscape.

0
source

Source: https://habr.com/ru/post/977698/


All Articles