简体   繁体   中英

how to load a .xib file consisting a tabbar controller

I have a .xib file which consist of a tabbar controller, i want to load it using navigation controller in my didselect row. My parent view is a tabbar controller.How to hide my current tabbar controller and display the new.

You could try having a custom single tab-bar controller in your app. When a user clicks on cell of UItableView a tab that leads to a new set of tabs, replace all of the tabs in the single-tab-bar controller.

Now user navigates back then change it to old tabs to tab-bar controller.

I think it is not best UI. but according to your requirement it should work.

you can hide Programmatically your UITabBar controller by using below code :

AppDelegateFileName *appDelegate = (AppDelegateFileName *) [[UIApplication sharedApplication] delegate];
[appDelegate.tabbarController.tabBar setHidden:YES];

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM