Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Create a TabBar Controller with a Master-detail template?

I created master-detail template for the ipad application and now I want to add Tab Bar to either master view or detail view. I can easily add tab bar controller using editor->embed in ->tab bar controller. However when I run application tab bar is not showing.

Tab bar is showing in storyboard but I am also unable to add extra tab bar items. What am I doing wrong thanks?

storyboard

like image 879
TheGuyWhoChatsWithBots Avatar asked Oct 22 '22 10:10

TheGuyWhoChatsWithBots


1 Answers

You should embed the navigation controller (of either the master or detail VC) in a tab bar controller, then delete the connection between the split view controller and that navigation controller. Finally, remake the connection from the split view controller to the tab bar controller. You'll also need to make several code changes, because the template code refers to the detail controller by its hierarchy in the split view controller, which will now be different.

like image 161
rdelmar Avatar answered Nov 15 '22 08:11

rdelmar