How to hide a tabbar at the app startup?

I think you should either send -presentModalViewController:animated: to your main UIViewController with the tab bar controller as an argument or just do this.

Up vote 1 down vote favorite share g+ share fb share tw.

So, I want my app starts with a UIViewController(without seeing a tabbar), and then enter a UITableView with navigationbar and tabbar. The problem is that the Tabbar is visible at the app starts up, anyone can help on this will be very appreciated... iphone objective-c cocoa-touch uikit tabbar link|improve this question edited Apr 4 '10 at 8:25Peter Hosey53.5k445137 asked Apr 4 '10 at 8:05Georg143 0% accept rate.

I think you should either send -presentModalViewController:animated: to your main UIViewController with the tab bar controller as an argument or just do this: myWindow addSubview: myTabBarController.view.

Make your app a navigation based application (rather than a tab bar based one) then add a tab bar on the UITableView. There is help for adding the UITabBar here I do it like this : in this case drawing a table view and map view (From the Locati application) tabBarController = UITabBarController alloc init; // creates your tab bar so you can add everything else to it searchTableViewController = SearchTableViewController alloc init; // creates your table view - this should be a UIViewController with a table view in it, or UITableViewController UINavigationController *searchTableNavController = UINavigationController alloc initWithRootViewController:searchTableViewController autorelease; searchTableViewController release; // creates your table view's navigation controller, then adds the view controller you made. Note I then let go of the view controller as the navigation controller now holds onto it searchMapViewController = SearchMapViewController alloc init; UINavigationController *mapTableNavController = UINavigationController alloc initWithRootViewController:searchMapViewController autorelease; searchMapViewController release; // does exactly the same as the first round, but for your second tab at the bottom of the bar.

TabBarController. ViewControllers = NSArray arrayWithObjects:searchTableNavController, mapTableNavController, nil; //add both of your navigation controllers to the tab bar. You can put as many controllers on as you like I found this pattern a long time ago.

Sorry that I can't point at the original. YOu then need to add the tabbarcontoller to the relevant view (...view addSubView:tabBarController;) possibly setting frame first.

Yes my app is a navigation based application, the mainwindow calls UITableView with a tabbar and navigation bar, I think that's why the tabbar is shown at the startup view(it's a UIViewController). It will be appreciated if you could post some sample code.. – Georg Apr 4 '10 at 10:39 my app is a TabBar based app, is this the problem to load an UIView which without tabbar controller visible? – Georg Apr 5 '10 at 14:43 yes.

Make a view based app. Add the tab bar to the screens that you want a tab bar on. – Andiih Apr 6 '10 at 13:17.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions