I have a tabbarcontroller in the storyboard as the initial view of the controller


How does this return zero
UITabBarController* tabbarController = (UITabBarController*) self.tabBarController; NSLog(@"%@",tabbarController); NSLog(@"%@",self.navigationController.tabBarController);
Originally what I am trying to do
NSMutableArray *newTabs = [NSMutableArray arrayWithArray:[self.tabBarController viewControllers]]; NSLog(@"\n\n\n%lu\n\n\n",(unsigned long)[newTabs count]); NSLog(@"self.tabBarController.viewControllers %@ \n\n",self.tabBarController); [newTabs removeObjectAtIndex: 1]; [self.tabBarController setViewControllers:newTabs];
Why am I zeroing?
source share