Just wandering that we can't add the tab bar controller in a uiviewcontroller in between of the app. What is the best way to implement such kind of UI where you need tab bar in between of any controller within the app and rest of other app is without tab bar. I tried to add a tab bar controller in between of the app but the controller which are being added in the tab bar items just lost few functionality like : not able to add button on them and they are not showing the navigation bar title which are being added on the tab bar controller.
How we can sort this out. Best way to implement the tab bar controller within middle of the app.
Yes i got the answer for this after creating lots of POC to get this done. How we can do it by programmatically.
There is no need to make any subclassing or tool bar using. Write a function in delegate class in which you create your tab bar and add a root view controller to navigation controller.
This is going to work like in below way.
When you launch the first view controller with a navigation controller you will do llke this
[self.window setRootViewController:navcontroller];
Once you made your view controller you can make a function in which you will create the tab bar and its view controller. and this will seems like below code.
-(void)createTabbar {
}
Once you will call it from shared delegate object tab bar will be added and when ever you want to remove it. you just need to create a funtion where you can remove subview from navigation controller.
}
Now its done your UI will behave normally and we have achieved what we want to do.