5

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

4

1 回答 1

3

您应该将导航控制器(主 VC 或详细 VC)嵌入标签栏控制器,然后删除拆分视图控制器和该导航控制器之间的连接。最后,重新建立从拆分视图控制器到标签栏控制器的连接。您还需要进行一些代码更改,因为模板代码通过拆分视图控制器中的层次结构引用详细控制器,现在将有所不同。

于 2013-05-16T00:27:27.157 回答