Using a Tab Bar App with a Navigation Controller
I want to use a Tab Bar App with a UINavigationController
.
I followed this video tutorial. It looked nice and easy, but I am new to Objective-C.
When I do the what is shown at 2:50 in the video, I get these results: http://img4.hostingpics.net/pics/761392Capturede769cran20110515a768024124.png http://img4.hostingpics.net/pics/461473Capturede769cran20110515a768024130.png
The other thing in the video is he made an example for one item. What if I want two items in the navigation bar? Is it correct to have a separate navigation controller f开发者_如何转开发or each item?
If I understand correctly, you're asking whether if you have a tab-bar-based UI with navigation possible in each tab, you should have a UINavigationController under each tab.
Yes.
It is correct and required that you make a separate UINavigationController for each tab.
精彩评论