How to stop rotation in parent ViewController when unwound from Segue from a child UIViewController?
<p>I have two UIViewControllers - ViewControllerA and ViewControllerB (these are not in NavigationViewController hierarchy).
ViewControllerA implements the following method:</p>

<pre><code>- (NSUInteger)supportedInterfaceOrientations {
    return UIInterfaceOrientationPortrait;
}
</code></pre>

<p>On a button click on ViewControllerA, ViewControllerB is called. Now if we change the orientation of ViewControllerB to Landscape and move back to ViewControllerA, the orientation of ViewControllerA is changed to Landscape mode. </p>

<p>How does one prevent the same from happening? </p>