supportedInterfaceOrientationsForWindow not called in iPad
<p>I have an app which has all views in both Landscape and portrait however there are two view controllers which are in strict Portrait.</p>

<p>I used below method and its working well in all devices except iPad.</p>

<pre><code> func application(application: UIApplication, supportedInterfaceOrientationsForWindow window: UIWindow?) -&gt; UIInterfaceOrientationMask {
    NSLog("Function called")
    if isShouldRotate == true{
        return UIInterfaceOrientationMask.AllButUpsideDown

    }

    return UIInterfaceOrientationMask.Portrait
}
</code></pre>

<p>Then I came to know about subclassing the UINavigationController however not know how to implement it.</p>

<p>Please let me know the steps.</p>