In my app, I have only one UIViewController in landscape mode and it works fine if I navigate within the app. But when I present UIAlertController (for showing alert view) from that landscape viewcontroller and change device orientation, it changes that landscape viewcontroller’s orientation. I tried different solutions like :
iOS 8.3 supported orientations crashs
but none of these work for me. How can I lock UIAlertController’s orientation?
Note: My app supports iOS9.