I'm inserting a view directly into the UIWindow of an application. If the view I was in previously had a keyboard up and was in landscape I sometimes get this view: https://i.stack.imgur.com/plutA.jpg
I have tried printing out all the details for the UIWindow's layer and all sublayers and none of them appear to have a transform on them. Any idea what could be going wrong here?