Need some controllers in landscape
<p>I have complex application with lot of ViewControllers. The whole app is designed to be in portrait mode and its locked to it. </p>

<p>Now I need part of app to be able to show content in landscape. Everything is working fine, excluding one scenario:</p>

<p>I'm on controller, which is locked to portrait and has device in landscape position - I navigate to new controller, which is landscape enabled. Then the new controller doesn't rotate to landscape. If I rotate phone to portrait and landscape again, the controller rotates correctly (if I enter the new controller with device in portrait, everything is fine and window rotates, if I rotate device. 
I tried:</p>

<pre><code>let value = UIDevice.currentDevice().orientation.rawValue
UIDevice.currentDevice().setValue(value, forKey: "orientation")
</code></pre>

<p>in viewWillAppear, but it didn't work (I suppose it can't work, because <code>UIDevice.currentDevice().orientation</code> is in requested orientation already.</p>