Tab Bar Application With Navigation Controller

前端 未结 8 887
春和景丽
春和景丽 2020-11-27 10:28

I have a simple iPhone app that has a tab bar and 3 tabs. Each tab loads as a separate nib with a corresponding controller. Each nib contains a tableview with some other con

相关标签:
8条回答
  • 2020-11-27 10:55

    lots of answers, but none checked ...

    of course, this is all now super easy with storyboards in Xcode interface builder:

    create the Navigation Controller of interest, then choose menu Editor and item Embed In > and then Tab Bar Controller .

    this even worked with the navigation controllers that Xcode presents you when you start with the master/detail split-view-controller template for a new project. in both cases, i now have a tab bar controller as my master; for iPhone, it ripples all the way through the end controllers, and on iPad, it keeps the tabs only in the master (i.e. the split on the right in landscape, and the popover in portrait).

    0 讨论(0)
  • 2020-11-27 10:56

    I realized this is late, but this question is #1 on google results today and so I figured I'd add an answer. There is a great youtube video tutorial by O'Reilly that walks you through a tabbar + navigation controller app. Check it out here: http://www.youtube.com/watch?v=LBnPfAtswgw

    0 讨论(0)
提交回复
热议问题