0
How do I add a Uitabbarcontroller with Uinavigationcontroller, but I would like to add in a second view, because I have the login start screen and I would not like to display the tabbar in that first view, I found some examples but they all added these controls in Appdelegate and someone would know how to do that?
Thanks friend thanks, this is the correct way to add without using storyboard?
– Bruno Richart
Yes! With this code snippet, you will manually create a Tabbar, without needing a Storyboard.
– Leonardo Rocha
I can add one Uinavigationcontroller normally in this case?
– Bruno Richart
Yes, no problem, in that case you will have to put this snippet also in your Navigationcontroller.
– Leonardo Rocha
Wrong Leonardo, you don’t start Navigation and then Tabbar... The correct is to initialize Tabbar and for each viewcontroller it contains, you allot a Navigationcontroller or a normal View (in the example I give a set in the viewcontrollers set) Example: Aviuingationcontroller *navSearch =[[UINavigationController alloc] initWithRootViewController:[[BCCSearchViewController alloc] init]];
 [self.tabBarController setViewControllers:@[navSearch]];
 [navSearch.tabBarItem setImage:[UIImage imageNamed:@"tab-pesquisa"]];
 [navAnuncie setTitle:@"Anuncie"];
– Lucas Eduardo
You would have some example of how I can implement this?
– Bruno Richart