Note that there are some explanatory texts on larger screens.

plurals
  1. POself.navigationController value gets null in Tabbar VIew
    primarykey
    data
    text
    <p>I have a navigation controller as the root view controller. I have a UIView then a UITableView, then again a UITableView, then a TabbarView and each of my tabbarview is a hierarchy of views. Now my problem is that I am able to get the value of self.navigationcontroller till the last UITableView but the value gets null in the TabbarView. Now is there a way I can access the value in the Tabbarview. Do I have to create a new navigation controller for each tabs in the tabbarview and then assign the root navigation controller value to it? </p> <p>My below code does not work, The last controller where I can get the value of the navigationController is AssignmentViewController.</p> <p>Code from AssignmentViewController:</p> <pre><code>- (void)viewDidLoad { UITransTabViewController *transtvController = [[UITransTabViewController alloc] initWithNibName:@"TransTabViewController" bundle:nil]; self.transtabViewController = transtvController; transtvController.naviController=self.navigationController; [transtvController release]; } </code></pre> <p>In my UITranTabViewController.h I have the below code,</p> <pre><code>@interface UITransTabViewController : UIViewController &lt;UITabBarDelegate&gt; { NSArray *viewControllers; IBOutlet UITabBar *tabBar; IBOutlet UITabBarItem *arrivalsTabBarItem; IBOutlet UITabBarItem *departuresTabBarItem; UIViewController *selectedViewController; UINavigationController *naviController; } @property (nonatomic, retain) NSArray *viewControllers; @property (nonatomic, retain) IBOutlet UITabBar *tabBar; @property (nonatomic, retain) IBOutlet UITabBarItem *arrivalsTabBarItem; @property (nonatomic, retain) IBOutlet UITabBarItem *departuresTabBarItem; @property (nonatomic, retain) UIViewController *selectedViewController; @property (nonatomic, retain) IBOutlet UINavigationController *naviController; </code></pre> <p>I am trying to set the value of naviController from the AssignmentViewController, but still I get the </p> <pre><code>NSLog(@"MY NAV CONTROLLER IN TRANSTABVIEWCONTROLLER IS = %@", self.naviController); </code></pre> <p>value as NULL.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload