Adding tabbar controller to uiview
I have a requirement with below steps,
1. Login page
2. Page2
3. Page 3 - table view
Now I want to display a tab barcontroller with 4 tab items on page 3. All the 4 tab items have individual view controller. Page 3 is not one of the items of tab controller, it just contains the tabcontroller so that the user can access 4 other functionalities that the app provides. I do not want to display it on the login page and page 2 so adding the tabcontroller to MainWindow is not a possibility. Can any开发者_JS百科body please help me out with adding a tabbar controller to a uiview having uitableview.
You may find this question useful: Tab bar controller inside a navigation controller, or sharing a navigation root view
Alternatively, after Page2 you could swap out the entire root view controller from your window and replace it with a UITabBarController's view. Since this won't be part of a navigation stack, you'll have to manually swap the views.
精彩评论