Push TabBarController to a View?

Because the UITabBarController class inherits from the UIViewController class, tab bar controllers have their own view that is accessible through the view property. When deploying a tab bar interface, you must install this view as the root of your window. Unlike other view controllers, a tab bar interface should never be installed as a child of another view controller.

developer.apple.com/library/ios/#documen... What this mean is, this is not "allowed" and Apple can or may in the future reject your application. UITabBarController is intended to be added to the root view(window) in your application delegate. If you want a tabbar to be pushed on later you need to use the UIToolBar with e.g. Uisegmentedcontrol or the toolbar buttons.

Even though some apps does this(e. G Wordpress app) you will later find out that you will run onto some issues in the console when presenting viewcontrollers modally.(A warning will be given).

– teawithfruit Jan 27 at 14:54 As far I know, yes. I did the same "mistake" with one app I made, because the compiler won't tell you that pushing a UITabBarController is wrong so I thought this was OK until I got help and read the documentation(it lead to other problems to because of the implicit relationship iOS sets up for you with parentViewController, tabBarController, navigationController). What I did was to make a UIToolBar, and added a UISegmentedControl which I centered.

However I could have used the UIToolBarItem as-well which will give you almost the same effect. However the logic of pushing/popping views is lost. – Hyperion Jan 27 at 15:47 Would you use then a normal View to fill it with all the TabBar stuff you need to build the TabBar?

– teawithfruit Jan 27 at 16:01 Yes you would make a new viewcontroller, inheriting from the UIViewController and add components to this view. – Hyperion Jan 27 at 16:02 Is it the same with all kind of controllers? Perhaps with the NavigationController or the ViewController?

Do I have to build them all from scratch if I want to use them? – teawithfruit Jan 277 at 0:02.

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