I have a weird problem regarding how I limit the screen orientation.
Here's what my storyboard looks like:

My screen orientation is set to Portrait only.
In my AppDelegate app, I have the following:
func application(application: UIApplication, supportedInterfaceOrientationsForWindow window: UIWindow?) -> UIInterfaceOrientationMask { if self.window?.rootViewController?.presentedViewController is VideoPlayerViewController { return UIInterfaceOrientationMask.Landscape; } else { return UIInterfaceOrientationMask.Portrait; } }
On the "Home" tab, clicking the "Red" button or any of the cells, you will go to my VideoPlayerViewController
. I limited VideoPlayerViewController
to terrain only.
However, right before segue happens, this happens:

Basically, what happens is that in the second image the red part moves upward, pushing the status bar to the side.
Then, in the 3rd picture, the first 2 tabs are slightly shifted to the left , while the last 2 tabs are slightly shifted to the right .
Again, all this happens just before the Modal transition occurs.
What could be the reason for this? Let me know if I need to add additional code.