How can I accomplish the following:
- When my app loads a UIView will show 4 buttons
- Clicking on a button will load a UITabBarController (not a UIView with a UITabBar) that can display multiple views.
This seems challenging to me, because in order for me to use the UITabBarController I need to add this to the window’s subview in my appDelegate. By doing so, my app automatically will load with the UITabbarController in the root view.
You don’t need to add the
UITabBarControllerin the application delegate, that’s just the most common way to use it. You can have your initial view use a simpleUIViewController, then when the button is pressed load theUITabBarController(either programmatically or from a nib), and then display it.The following is an example of what might be in your app delegate: