I have an app that have several views. In one view I would like to add a UITabBarController.
In another app I used this to add the UITabBarController to the rootViewController, but I am not sure if that is even the correct way to do it.
in the .h
@property (nonatomic, retain) IBOutlet UITabBarController *tabBarController;
in the .m
@synthesize tabBarController=_tabBarController;
self.window.rootViewController = self.tabBarController;
In one of my app i have used this code to set tabbarcontroller in between app
define tabbar controller in AppDelegate.m
Apply below code where you want to push your controller with tab bar controller