I am working on an iOS application that is created using the old version of X-Code, so it has a window in MainWindow.xib. Recently, when I launch this project in the beta version of iOS8, I had a problem: the window does not rotate in landscape orientation. So I added another window to MainWindow.xib. I made, if the condition for checking OS versions, for an older version of iOS, I use a previously created window, but for iOS8 I use a newly added window for landscape orientation. I solved the problem. The whole application works correctly, except for the camera.
Below are screenshots.
In LandscapeMode (it works correctly):

PortraitMode ( , , , , ):

, , , , .
Appdelegate.
?
.