I've this weird screen orientation showing up for enter iPad passcode on my login screen when I tap on saved password in landscape mode. The strange thing is that when I rotate screen to landscape mode and go to portrait mode it shows correctly first time but after that it again starts showing up weirdly.
It seems that it is trying to present passcode screen in landscape orientation on device's portrait mode.
This issue doesn't occur when device is in landscape mode.
Is it to do with something in my code? How to fix it or go about finding out the problem?