views:

30

answers:

0

I have a UITabBarController that supports four different views, all UINavigationController. To enable the orientation, all views in tabs active at that moment must support it. The problem is that I only enabled the orientation to some views in the grafts UINavigationController. For example:

  • UITabBarController:
  • UINavigationController1: View1 -> View2 -> View3 -> View4
  • UINavigationController2: View1 -> View2 -> View3 -> View4
  • UINavigationController3: View1 -> View2 -> View3 -> View4
  • UINavigationController4: View1 -> View2 -> View3 -> View4

I would like to enable the orientation only when it appears, for example, the View4 of UINavigationController1 and View4 of UINavigationController3. Is there an easy way to do that?